Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(tooltip): isOpen to work with expressions #4380

Closed
wants to merge 1 commit into from
Closed

fix(tooltip): isOpen to work with expressions #4380

wants to merge 1 commit into from

Conversation

RobJacobs
Copy link
Contributor

The is-open attribute should work with expressions
as well as model values

scope.$digest();
}));

it( 'should show and hide with the expression', function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove space before '

@wesleycho wesleycho added this to the 0.14.0 (Bootstrap 3.3) milestone Sep 8, 2015
@@ -221,7 +221,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position'])

// And show the tooltip.
ttScope.isOpen = true;
if (isOpenExp) {
if (isOpenExp && angular.isFunction(isOpenExp.assign)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused - does this not work currently?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will throw an exception if using an expression instead of a model value, this change will allow for both implementations.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have commented, I read the related issue and understood.

The is-open attribute should work with expressions
as well as model values

Closes #4380
@RobJacobs RobJacobs closed this in 5f68280 Sep 9, 2015
@RobJacobs RobJacobs deleted the fix-tooltip-isopen branch September 9, 2015 19:15
jasonaden pushed a commit to deskfed/bootstrap that referenced this pull request Jan 8, 2016
The is-open attribute should work with expressions
as well as model values

Closes angular-ui#4380
Fixes angular-ui#4362
jasonaden pushed a commit to deskfed/bootstrap that referenced this pull request Jan 8, 2016
The is-open attribute should work with expressions
as well as model values

Closes angular-ui#4380
Fixes angular-ui#4362
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants