diff options
| author | Anatoly Shikolay | 2013-05-07 00:56:51 -0400 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-05-09 15:01:22 +0100 | 
| commit | 4ae4f1edd230affcf4a6675fd748f86665ce2f8b (patch) | |
| tree | bbf5be0d97c1417cab2c08e3d4f07644ab13460d /src | |
| parent | 40c36ee7feeb29c2024c37b7f88c7ad639bdda2f (diff) | |
| download | angular.js-4ae4f1edd230affcf4a6675fd748f86665ce2f8b.tar.bz2 | |
style(*): fix up semicolon and var usage
Diffstat (limited to 'src')
| -rw-r--r-- | src/angular-bootstrap.js | 2 | ||||
| -rw-r--r-- | src/ng/animation.js | 4 | ||||
| -rw-r--r-- | src/ng/animator.js | 4 | ||||
| -rw-r--r-- | src/ng/compile.js | 2 | ||||
| -rw-r--r-- | src/ng/http.js | 2 | ||||
| -rw-r--r-- | src/ng/parse.js | 13 | 
6 files changed, 13 insertions, 14 deletions
| diff --git a/src/angular-bootstrap.js b/src/angular-bootstrap.js index 86b95814..b55bd475 100644 --- a/src/angular-bootstrap.js +++ b/src/angular-bootstrap.js @@ -222,6 +222,6 @@      function isActuallyNaN(val) {        return (typeof val === 'number') && isNaN(val);      } -  }; +  }  })(window, document); diff --git a/src/ng/animation.js b/src/ng/animation.js index 76cf943e..faed84ca 100644 --- a/src/ng/animation.js +++ b/src/ng/animation.js @@ -56,6 +56,6 @@ function $AnimationProvider($provide) {            return $injector.get(animationName);          }        } -    } +    };    }]; -}; +} diff --git a/src/ng/animator.js b/src/ng/animator.js index 04ef4a6e..faf2ed40 100644 --- a/src/ng/animator.js +++ b/src/ng/animator.js @@ -300,7 +300,7 @@ var $AnimatorProvider = function() {                  total = Math.max(parseFloat(value) || 0, total);                });                return total; -            }; +            }              function beginAnimation() {                element.addClass(activeClassName); @@ -360,7 +360,7 @@ var $AnimatorProvider = function() {                element.removeClass(activeClassName);                element.removeData(NG_ANIMATE_CONTROLLER);              } -          } +          };          }          function show(element) { diff --git a/src/ng/compile.js b/src/ng/compile.js index 3933a31b..96529d3c 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -841,7 +841,7 @@ function $CompileProvider($provide) {                  parentGet = $parse(attrs[attrName]);                  scope[scopeName] = function(locals) {                    return parentGet(parentScope, locals); -                } +                };                  break;                } diff --git a/src/ng/http.js b/src/ng/http.js index dd949a6c..a7f3b92d 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -699,7 +699,7 @@ function $HttpProvider() {          var rejectFn = chain.shift();          promise = promise.then(thenFn, rejectFn); -      }; +      }        promise.success = function(fn) {          promise.then(function(response) { diff --git a/src/ng/parse.js b/src/ng/parse.js index b5127d9f..26c41a90 100644 --- a/src/ng/parse.js +++ b/src/ng/parse.js @@ -162,10 +162,10 @@ function lex(text, csp){    function readIdent() {      var ident = "",          start = index, -        lastDot, peekIndex, methodName; +        lastDot, peekIndex, methodName, ch;      while (index < text.length) { -      var ch = text.charAt(index); +      ch = text.charAt(index);        if (ch == '.' || isIdent(ch) || isNumber(ch)) {          if (ch == '.') lastDot = index;          ident += ch; @@ -179,7 +179,7 @@ function lex(text, csp){      if (lastDot) {        peekIndex = index;        while(peekIndex < text.length) { -        var ch = text.charAt(peekIndex); +        ch = text.charAt(peekIndex);          if (ch == '(') {            methodName = ident.substr(lastDot - start + 1);            ident = ident.substr(0, lastDot - start); @@ -666,8 +666,7 @@ function parser(text, json, $filter, csp){        var object = {};        for ( var i = 0; i < keyValues.length; i++) {          var keyValue = keyValues[i]; -        var value = keyValue.value(self, locals); -        object[keyValue.key] = value; +        object[keyValue.key] = keyValue.value(self, locals);        }        return object;      }, { @@ -792,7 +791,7 @@ function cspSafeGetterFn(key0, key1, key2, key3, key4) {      }      return pathVal;    }; -}; +}  function getterFn(path, csp) {    if (getterFnCache.hasOwnProperty(path)) { @@ -807,7 +806,7 @@ function getterFn(path, csp) {      fn = (pathKeysLength < 6)          ? cspSafeGetterFn(pathKeys[0], pathKeys[1], pathKeys[2], pathKeys[3], pathKeys[4])          : function(scope, locals) { -          var i = 0, val +          var i = 0, val;            do {              val = cspSafeGetterFn(                      pathKeys[i++], pathKeys[i++], pathKeys[i++], pathKeys[i++], pathKeys[i++] | 
