Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 3a78cf7

Browse files
committed
fixup! feat($animate): add support for customFilter
1 parent 66b7812 commit 3a78cf7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/ng/animate.js

+10
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ var $AnimateProvider = ['$provide', /** @this */ function($provide) {
254254
* animations sluggish.
255255
* </div>
256256
*
257+
* **Note:**
258+
* If present, `customFilter` will be checked before
259+
* {@link $animateProvider#classNameFilter classNameFilter}.
260+
*
257261
* @param {Function=} filterFn - The filter function which will be used to filter all animations.
258262
* If a falsy value is returned, no animation will be performed. The function will be called
259263
* with the following arguments:
@@ -282,6 +286,12 @@ var $AnimateProvider = ['$provide', /** @this */ function($provide) {
282286
* When setting the `classNameFilter` value, animations will only be performed on elements
283287
* that successfully match the filter expression. This in turn can boost performance
284288
* for low-powered devices as well as applications containing a lot of structural operations.
289+
*
290+
* **Note:**
291+
* If present, `classNameFilter` will be checked after
292+
* {@link $animateProvider#customFilter customFilter}. If `customFilter` is present and returns
293+
* `false`, `classNameFilter` will not be checked.
294+
*
285295
* @param {RegExp=} expression The className expression which will be checked against all animations
286296
* @return {RegExp} The current CSS className expression value. If null then there is no expression value
287297
*/

0 commit comments

Comments
 (0)