@@ -170,7 +170,7 @@ var $AnimateProvider = ['$provide', function($provide) {
170
170
* page}.
171
171
*/
172
172
return {
173
- animate : function ( element , from , to ) {
173
+ animate : function ( element , from , to ) {
174
174
applyStyles ( element , { from : from , to : to } ) ;
175
175
return asyncPromise ( ) ;
176
176
} ,
@@ -191,7 +191,7 @@ var $AnimateProvider = ['$provide', function($provide) {
191
191
* @param {object= } options an optional collection of styles that will be applied to the element.
192
192
* @return {Promise } the animation callback promise
193
193
*/
194
- enter : function ( element , parent , after , options ) {
194
+ enter : function ( element , parent , after , options ) {
195
195
applyStyles ( element , options ) ;
196
196
after ? after . after ( element )
197
197
: parent . prepend ( element ) ;
@@ -209,7 +209,7 @@ var $AnimateProvider = ['$provide', function($provide) {
209
209
* @param {object= } options an optional collection of options that will be applied to the element.
210
210
* @return {Promise } the animation callback promise
211
211
*/
212
- leave : function ( element , options ) {
212
+ leave : function ( element , options ) {
213
213
element . remove ( ) ;
214
214
return asyncPromise ( ) ;
215
215
} ,
@@ -232,7 +232,7 @@ var $AnimateProvider = ['$provide', function($provide) {
232
232
* @param {object= } options an optional collection of options that will be applied to the element.
233
233
* @return {Promise } the animation callback promise
234
234
*/
235
- move : function ( element , parent , after , options ) {
235
+ move : function ( element , parent , after , options ) {
236
236
// Do not remove element before insert. Removing will cause data associated with the
237
237
// element to be dropped. Insert will implicitly do the remove.
238
238
return this . enter ( element , parent , after , options ) ;
@@ -251,11 +251,11 @@ var $AnimateProvider = ['$provide', function($provide) {
251
251
* @param {object= } options an optional collection of options that will be applied to the element.
252
252
* @return {Promise } the animation callback promise
253
253
*/
254
- addClass : function ( element , className , options ) {
254
+ addClass : function ( element , className , options ) {
255
255
return this . setClass ( element , className , [ ] , options ) ;
256
256
} ,
257
257
258
- $$addClassImmediately : function ( element , className , options ) {
258
+ $$addClassImmediately : function ( element , className , options ) {
259
259
element = jqLite ( element ) ;
260
260
className = ! isString ( className )
261
261
? ( isArray ( className ) ? className . join ( ' ' ) : '' )
@@ -280,11 +280,11 @@ var $AnimateProvider = ['$provide', function($provide) {
280
280
* @param {object= } options an optional collection of options that will be applied to the element.
281
281
* @return {Promise } the animation callback promise
282
282
*/
283
- removeClass : function ( element , className , options ) {
283
+ removeClass : function ( element , className , options ) {
284
284
return this . setClass ( element , [ ] , className , options ) ;
285
285
} ,
286
286
287
- $$removeClassImmediately : function ( element , className , options ) {
287
+ $$removeClassImmediately : function ( element , className , options ) {
288
288
element = jqLite ( element ) ;
289
289
className = ! isString ( className )
290
290
? ( isArray ( className ) ? className . join ( ' ' ) : '' )
@@ -310,7 +310,7 @@ var $AnimateProvider = ['$provide', function($provide) {
310
310
* @param {object= } options an optional collection of options that will be applied to the element.
311
311
* @return {Promise } the animation callback promise
312
312
*/
313
- setClass : function ( element , add , remove , options ) {
313
+ setClass : function ( element , add , remove , options ) {
314
314
var self = this ;
315
315
var STORAGE_KEY = '$$animateClasses' ;
316
316
var createdCache = false ;
@@ -320,7 +320,7 @@ var $AnimateProvider = ['$provide', function($provide) {
320
320
if ( ! cache ) {
321
321
cache = {
322
322
classes : { } ,
323
- options : options
323
+ options : options
324
324
} ;
325
325
createdCache = true ;
326
326
} else if ( options && cache . options ) {
@@ -357,15 +357,15 @@ var $AnimateProvider = ['$provide', function($provide) {
357
357
return cache . promise ;
358
358
} ,
359
359
360
- $$setClassImmediately : function ( element , add , remove , options ) {
360
+ $$setClassImmediately : function ( element , add , remove , options ) {
361
361
add && this . $$addClassImmediately ( element , add ) ;
362
362
remove && this . $$removeClassImmediately ( element , remove ) ;
363
363
applyStyles ( element , options ) ;
364
364
return asyncPromise ( ) ;
365
365
} ,
366
366
367
- enabled : noop ,
368
- cancel : noop
367
+ enabled : noop ,
368
+ cancel : noop
369
369
} ;
370
370
} ] ;
371
371
} ] ;
0 commit comments