@@ -170,7 +170,7 @@ var $AnimateProvider = ['$provide', function($provide) {
170170 * page}.
171171 */
172172 return {
173- animate : function ( element , from , to ) {
173+ animate : function ( element , from , to ) {
174174 applyStyles ( element , { from : from , to : to } ) ;
175175 return asyncPromise ( ) ;
176176 } ,
@@ -191,7 +191,7 @@ var $AnimateProvider = ['$provide', function($provide) {
191191 * @param {object= } options an optional collection of styles that will be applied to the element.
192192 * @return {Promise } the animation callback promise
193193 */
194- enter : function ( element , parent , after , options ) {
194+ enter : function ( element , parent , after , options ) {
195195 applyStyles ( element , options ) ;
196196 after ? after . after ( element )
197197 : parent . prepend ( element ) ;
@@ -209,7 +209,7 @@ var $AnimateProvider = ['$provide', function($provide) {
209209 * @param {object= } options an optional collection of options that will be applied to the element.
210210 * @return {Promise } the animation callback promise
211211 */
212- leave : function ( element , options ) {
212+ leave : function ( element , options ) {
213213 element . remove ( ) ;
214214 return asyncPromise ( ) ;
215215 } ,
@@ -232,7 +232,7 @@ var $AnimateProvider = ['$provide', function($provide) {
232232 * @param {object= } options an optional collection of options that will be applied to the element.
233233 * @return {Promise } the animation callback promise
234234 */
235- move : function ( element , parent , after , options ) {
235+ move : function ( element , parent , after , options ) {
236236 // Do not remove element before insert. Removing will cause data associated with the
237237 // element to be dropped. Insert will implicitly do the remove.
238238 return this . enter ( element , parent , after , options ) ;
@@ -251,11 +251,11 @@ var $AnimateProvider = ['$provide', function($provide) {
251251 * @param {object= } options an optional collection of options that will be applied to the element.
252252 * @return {Promise } the animation callback promise
253253 */
254- addClass : function ( element , className , options ) {
254+ addClass : function ( element , className , options ) {
255255 return this . setClass ( element , className , [ ] , options ) ;
256256 } ,
257257
258- $$addClassImmediately : function ( element , className , options ) {
258+ $$addClassImmediately : function ( element , className , options ) {
259259 element = jqLite ( element ) ;
260260 className = ! isString ( className )
261261 ? ( isArray ( className ) ? className . join ( ' ' ) : '' )
@@ -280,11 +280,11 @@ var $AnimateProvider = ['$provide', function($provide) {
280280 * @param {object= } options an optional collection of options that will be applied to the element.
281281 * @return {Promise } the animation callback promise
282282 */
283- removeClass : function ( element , className , options ) {
283+ removeClass : function ( element , className , options ) {
284284 return this . setClass ( element , [ ] , className , options ) ;
285285 } ,
286286
287- $$removeClassImmediately : function ( element , className , options ) {
287+ $$removeClassImmediately : function ( element , className , options ) {
288288 element = jqLite ( element ) ;
289289 className = ! isString ( className )
290290 ? ( isArray ( className ) ? className . join ( ' ' ) : '' )
@@ -310,7 +310,7 @@ var $AnimateProvider = ['$provide', function($provide) {
310310 * @param {object= } options an optional collection of options that will be applied to the element.
311311 * @return {Promise } the animation callback promise
312312 */
313- setClass : function ( element , add , remove , options ) {
313+ setClass : function ( element , add , remove , options ) {
314314 var self = this ;
315315 var STORAGE_KEY = '$$animateClasses' ;
316316 var createdCache = false ;
@@ -320,7 +320,7 @@ var $AnimateProvider = ['$provide', function($provide) {
320320 if ( ! cache ) {
321321 cache = {
322322 classes : { } ,
323- options : options
323+ options : options
324324 } ;
325325 createdCache = true ;
326326 } else if ( options && cache . options ) {
@@ -357,15 +357,15 @@ var $AnimateProvider = ['$provide', function($provide) {
357357 return cache . promise ;
358358 } ,
359359
360- $$setClassImmediately : function ( element , add , remove , options ) {
360+ $$setClassImmediately : function ( element , add , remove , options ) {
361361 add && this . $$addClassImmediately ( element , add ) ;
362362 remove && this . $$removeClassImmediately ( element , remove ) ;
363363 applyStyles ( element , options ) ;
364364 return asyncPromise ( ) ;
365365 } ,
366366
367- enabled : noop ,
368- cancel : noop
367+ enabled : noop ,
368+ cancel : noop
369369 } ;
370370 } ] ;
371371} ] ;
0 commit comments