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

Commit 8c7a7b8

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ng/animate.js

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

0 commit comments

Comments
 (0)