diff options
| author | Vojta Jina | 2013-10-22 14:41:21 -0700 | 
|---|---|---|
| committer | Vojta Jina | 2013-10-22 15:32:41 -0700 | 
| commit | f2fab498303e00d199cb3d19a008670e214d5c10 (patch) | |
| tree | 3aa88fdb1f63bbed45c7541232a0fdfac226c126 /src/ngAnimate/animate.js | |
| parent | 934a95d3ef3f72dfc37b0b564624cb4a1286d4f4 (diff) | |
| download | angular.js-f2fab498303e00d199cb3d19a008670e214d5c10.tar.bz2 | |
style: make jshint happy
Diffstat (limited to 'src/ngAnimate/animate.js')
| -rw-r--r-- | src/ngAnimate/animate.js | 11 | 
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js index a58e02d2..20b9101e 100644 --- a/src/ngAnimate/animate.js +++ b/src/ngAnimate/animate.js @@ -1,3 +1,6 @@ +'use strict'; +/* jshint maxlen: false */ +  /**   * @ngdoc overview   * @name ngAnimate @@ -474,7 +477,7 @@ angular.module('ngAnimate', ['ng'])              break;              default: -              value = !rootAnimateState.running +              value = !rootAnimateState.running;              break;            }            return !!value; @@ -505,7 +508,7 @@ angular.module('ngAnimate', ['ng'])          //skip the animation if animations are disabled, a parent is already being animated          //or the element is not currently attached to the document body. -        if ((parent.inheritedData(NG_ANIMATE_STATE) || disabledAnimation).running || animations.length == 0) { +        if ((parent.inheritedData(NG_ANIMATE_STATE) || disabledAnimation).running || animations.length === 0) {            done();            return;          } @@ -686,7 +689,7 @@ angular.module('ngAnimate', ['ng'])                  var aDuration  = parseMaxTime(elementStyles[animationProp + durationKey]);                  if(aDuration > 0) { -                  aDuration *= parseInt(elementStyles[animationProp + animationIterationCountKey]) || 1; +                  aDuration *= parseInt(elementStyles[animationProp + animationIterationCountKey], 10) || 1;                  }                  animationDuration = Math.max(aDuration, animationDuration); @@ -782,7 +785,7 @@ angular.module('ngAnimate', ['ng'])              if(cancelled) {                done();              } -          } +          };          }          else {            element.removeClass(className);  | 
