Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae33e11

Browse files
shikolayIgorMinar
authored andcommitted
style(*): fix up semicolon and var usage
Conflicts: src/ng/animation.js src/ng/animator.js src/ng/http.js
1 parent 4d8b028 commit ae33e11

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
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/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ function $CompileProvider($provide) {
822822
parentGet = $parse(attrs[attrName]);
823823
scope[scopeName] = function(locals) {
824824
return parentGet(parentScope, locals);
825-
}
825+
};
826826
break;
827827
}
828828

src/ng/parse.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ function lex(text, csp){
154154
function readIdent() {
155155
var ident = "",
156156
start = index,
157-
lastDot, peekIndex, methodName;
157+
lastDot, peekIndex, methodName, ch;
158158

159159
while (index < text.length) {
160-
var ch = text.charAt(index);
160+
ch = text.charAt(index);
161161
if (ch == '.' || isIdent(ch) || isNumber(ch)) {
162162
if (ch == '.') lastDot = index;
163163
ident += ch;
@@ -171,7 +171,7 @@ function lex(text, csp){
171171
if (lastDot) {
172172
peekIndex = index;
173173
while(peekIndex < text.length) {
174-
var ch = text.charAt(peekIndex);
174+
ch = text.charAt(peekIndex);
175175
if (ch == '(') {
176176
methodName = ident.substr(lastDot - start + 1);
177177
ident = ident.substr(0, lastDot - start);
@@ -637,8 +637,7 @@ function parser(text, json, $filter, csp){
637637
var object = {};
638638
for ( var i = 0; i < keyValues.length; i++) {
639639
var keyValue = keyValues[i];
640-
var value = keyValue.value(self, locals);
641-
object[keyValue.key] = value;
640+
object[keyValue.key] = keyValue.value(self, locals);
642641
}
643642
return object;
644643
};
@@ -760,7 +759,7 @@ function cspSafeGetterFn(key0, key1, key2, key3, key4) {
760759
}
761760
return pathVal;
762761
};
763-
};
762+
}
764763

765764
function getterFn(path, csp) {
766765
if (getterFnCache.hasOwnProperty(path)) {
@@ -775,7 +774,7 @@ function getterFn(path, csp) {
775774
fn = (pathKeysLength < 6)
776775
? cspSafeGetterFn(pathKeys[0], pathKeys[1], pathKeys[2], pathKeys[3], pathKeys[4])
777776
: function(scope, locals) {
778-
var i = 0, val
777+
var i = 0, val;
779778
do {
780779
val = cspSafeGetterFn(
781780
pathKeys[i++], pathKeys[i++], pathKeys[i++], pathKeys[i++], pathKeys[i++]

0 commit comments

Comments
 (0)