Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 4ae4f1e

Browse files
shikolaypetebacondarwin
authored andcommitted
style(*): fix up semicolon and var usage
1 parent 40c36ee commit 4ae4f1e

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

src/angular-bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,6 @@
222222
function isActuallyNaN(val) {
223223
return (typeof val === 'number') && isNaN(val);
224224
}
225-
};
225+
}
226226
})(window, document);
227227

src/ng/animation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ function $AnimationProvider($provide) {
5656
return $injector.get(animationName);
5757
}
5858
}
59-
}
59+
};
6060
}];
61-
};
61+
}

src/ng/animator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ var $AnimatorProvider = function() {
300300
total = Math.max(parseFloat(value) || 0, total);
301301
});
302302
return total;
303-
};
303+
}
304304

305305
function beginAnimation() {
306306
element.addClass(activeClassName);
@@ -360,7 +360,7 @@ var $AnimatorProvider = function() {
360360
element.removeClass(activeClassName);
361361
element.removeData(NG_ANIMATE_CONTROLLER);
362362
}
363-
}
363+
};
364364
}
365365

366366
function show(element) {

src/ng/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ function $CompileProvider($provide) {
841841
parentGet = $parse(attrs[attrName]);
842842
scope[scopeName] = function(locals) {
843843
return parentGet(parentScope, locals);
844-
}
844+
};
845845
break;
846846
}
847847

src/ng/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ function $HttpProvider() {
699699
var rejectFn = chain.shift();
700700

701701
promise = promise.then(thenFn, rejectFn);
702-
};
702+
}
703703

704704
promise.success = function(fn) {
705705
promise.then(function(response) {

src/ng/parse.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ function lex(text, csp){
162162
function readIdent() {
163163
var ident = "",
164164
start = index,
165-
lastDot, peekIndex, methodName;
165+
lastDot, peekIndex, methodName, ch;
166166

167167
while (index < text.length) {
168-
var ch = text.charAt(index);
168+
ch = text.charAt(index);
169169
if (ch == '.' || isIdent(ch) || isNumber(ch)) {
170170
if (ch == '.') lastDot = index;
171171
ident += ch;
@@ -179,7 +179,7 @@ function lex(text, csp){
179179
if (lastDot) {
180180
peekIndex = index;
181181
while(peekIndex < text.length) {
182-
var ch = text.charAt(peekIndex);
182+
ch = text.charAt(peekIndex);
183183
if (ch == '(') {
184184
methodName = ident.substr(lastDot - start + 1);
185185
ident = ident.substr(0, lastDot - start);
@@ -666,8 +666,7 @@ function parser(text, json, $filter, csp){
666666
var object = {};
667667
for ( var i = 0; i < keyValues.length; i++) {
668668
var keyValue = keyValues[i];
669-
var value = keyValue.value(self, locals);
670-
object[keyValue.key] = value;
669+
object[keyValue.key] = keyValue.value(self, locals);
671670
}
672671
return object;
673672
}, {
@@ -792,7 +791,7 @@ function cspSafeGetterFn(key0, key1, key2, key3, key4) {
792791
}
793792
return pathVal;
794793
};
795-
};
794+
}
796795

797796
function getterFn(path, csp) {
798797
if (getterFnCache.hasOwnProperty(path)) {
@@ -807,7 +806,7 @@ function getterFn(path, csp) {
807806
fn = (pathKeysLength < 6)
808807
? cspSafeGetterFn(pathKeys[0], pathKeys[1], pathKeys[2], pathKeys[3], pathKeys[4])
809808
: function(scope, locals) {
810-
var i = 0, val
809+
var i = 0, val;
811810
do {
812811
val = cspSafeGetterFn(
813812
pathKeys[i++], pathKeys[i++], pathKeys[i++], pathKeys[i++], pathKeys[i++]

0 commit comments

Comments
 (0)