File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -313,8 +313,8 @@ This function can be used to enable / disable animations in two different ways:
313
313
With a single `boolean` argument, it enables / disables animations globally: `$animate.enabled(false)`
314
314
disables all animations in your app.
315
315
316
- When the second argument is a native DOM or jQuery element, the function enables / disables
317
- animations on this element *and all its children*: `$animate.enabled(false, myElement )`. This is the
316
+ When the first argument is a native DOM or jqLite/ jQuery element, the function enables / disables
317
+ animations on this element *and all its children*: `$animate.enabled(myElement, false )`. This is the
318
318
most flexible way to change the animation state. For example, even if you have used it to disable
319
319
animations on a parent element, you can still re-enable it for a child element. And compared to the
320
320
`classNameFilter`, you can change the animation status at runtime instead of during the config phase.
You can’t perform that action at this time.
0 commit comments