From 970d673f2d04aa777a1e028ff3145c16c6911bd2 Mon Sep 17 00:00:00 2001 From: Steve Berube Date: Tue, 12 Jul 2016 09:49:42 -0400 Subject: [PATCH 1/2] docs(guide/Animations): describe your change... The documentation for $animate lists it as element, boolean, this guide was showing boolean, element. https://code.angularjs.org/1.4.9/docs/api/ng/service/$animate --- docs/content/guide/animations.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/guide/animations.ngdoc b/docs/content/guide/animations.ngdoc index 741cb5334ccb..243859befca5 100644 --- a/docs/content/guide/animations.ngdoc +++ b/docs/content/guide/animations.ngdoc @@ -314,7 +314,7 @@ With a single `boolean` argument, it enables / disables animations globally: `$a disables all animations in your app. When the second argument is a native DOM or jQuery element, the function enables / disables -animations on this element *and all its children*: `$animate.enabled(false, myElement)`. This is the +animations on this element *and all its children*: `$animate.enabled(myElement, false)`. This is the most flexible way to change the animation state. For example, even if you have used it to disable animations on a parent element, you can still re-enable it for a child element. And compared to the `classNameFilter`, you can change the animation status at runtime instead of during the config phase. From d88744449f17a4f3a36bfb506adb108d8268543d Mon Sep 17 00:00:00 2001 From: Steve Berube Date: Tue, 12 Jul 2016 10:19:51 -0400 Subject: [PATCH 2/2] Update animations.ngdoc Changed preceding sentence to match. --- docs/content/guide/animations.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/guide/animations.ngdoc b/docs/content/guide/animations.ngdoc index 243859befca5..0992d3fde389 100644 --- a/docs/content/guide/animations.ngdoc +++ b/docs/content/guide/animations.ngdoc @@ -313,7 +313,7 @@ This function can be used to enable / disable animations in two different ways: With a single `boolean` argument, it enables / disables animations globally: `$animate.enabled(false)` disables all animations in your app. -When the second argument is a native DOM or jQuery element, the function enables / disables +When the first argument is a native DOM or jQuery element, the function enables / disables animations on this element *and all its children*: `$animate.enabled(myElement, false)`. This is the most flexible way to change the animation state. For example, even if you have used it to disable animations on a parent element, you can still re-enable it for a child element. And compared to the