-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Conversation
If used jQuery UI, second argument for .addClass() is duration
@suncat2000, i'm not sure what problem this PR is attempting to solve. We do not rely on jquery at all and certainly not jquery UI. |
@icfantv tooltip have |
@suncat2000, i don't follow. what about your jqueryUI comments? |
@icfantv jQueryUI library override some jQuery methods Method Overrides. For example if I use jQueryUI and angular-ui/bootstrap v1.0.x in project, this code:
worked with animation, because in .addClass() passed second argument. |
@suncat2000, we don't support running Angular UI Bootstrap with jQuery UI because you're not supposed to be using Bootstrap with jQuery UI. The amount of bloat that would add is just staggering. The |
Agree with @icfantv - we really don't want to go down this (very slippery) path... |
@icfantv, @pkozlowski-opensource I agree use jQueryUI in conjunction with Angular not the best solution, but I use this popular package angular-dragdrop and this package has dependency from jQueryUI. |
@icfantv, @pkozlowski-opensource the effect that I get when using angular-ui/bootstrap v1.0.x with jQueryUI: http://take.ms/kIsaH |
@icfantv, @pkozlowski-opensource if I understand correctly, Angular's jqLite provides buit-in jQuery .addClass() method with one argument String or Function:
What for? |
Looking at jqLite's code here, it seems that it also doesn't support the second argument. This looks like there is something wrong with the addClass method here. Worse, it looks like removing either the first or second parameter doesn't break the tests. @RobJacobs looking at the history, looks like d265113 is what caused this - can you give an explanation of what was intended here? |
@wesleycho That was an error on my part, this PR fixes a legitimate bug. The intent was to add the primary placement class (top, left, right, bottom) that are supported by the TWBS css and the placement class generated by the position service (primaryposition-secondaryposition). The second class is added to give folks a chance to use their own css and use the positioning approach described in my first post here |
Alright, that's what it looked like, but I wanted to be absolutely sure. |
I am going to merge this, and open a PR with a unit test for this just so the test can be reviewed (the test is indeed fixed by this PR). |
@wesleycho, @RobJacobs thanks! 👍 |
If used jQuery UI, second argument for .addClass() is duration
.addClass()
This code give move animation with default duration value
{duration: 400}
May be this animation effect not needed?