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

feat(ngAnimate): provide configuration support to match specific className values to trigger animations #5448

Closed
wants to merge 2 commits into from

Conversation

matsko
Copy link
Contributor

@matsko matsko commented Dec 17, 2013

Closes #5357
Closes #5283

@ghost ghost assigned tbosch Dec 19, 2013
@@ -288,6 +288,11 @@ angular.module('ngAnimate', ['ng'])
});
});

function isAcceptedClassName(className) {
var exp = $animateProvider.classNameFilter();
return !(exp instanceof RegExp) || exp.test(className);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the classNameFilter can be changed only during the config phase we should do this change once and generate either fn that always returns true or fn that runs the test.

@IgorMinar
Copy link
Contributor

otherwise lgtm

@btford
Copy link
Contributor

btford commented Dec 19, 2013

Landed as cef084a.

@btford btford closed this Dec 19, 2013
@matsko matsko deleted the animate_provider branch December 19, 2013 21:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.