MCPcopy
hub / github.com/angular-ui/ui-router / applyAnimationClassesFactory

Function applyAnimationClassesFactory

test/angular/1.4/angular-animate.js:180–191  ·  view source on GitHub ↗
($$jqLite)

Source from the content-addressed store, hash-verified

178}
179
180function applyAnimationClassesFactory($$jqLite) {
181 return function(element, options) {
182 if (options.addClass) {
183 $$addClass($$jqLite, element, options.addClass);
184 options.addClass = null;
185 }
186 if (options.removeClass) {
187 $$removeClass($$jqLite, element, options.removeClass);
188 options.removeClass = null;
189 }
190 }
191}
192
193function prepareAnimationOptions(options) {
194 options = options || {};

Callers 1

angular-animate.jsFile · 0.70

Calls 2

$$addClassFunction · 0.70
$$removeClassFunction · 0.70

Tested by

no test coverage detected