aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIgor Minar2011-03-28 23:15:28 -0700
committerIgor Minar2011-03-28 23:15:28 -0700
commit885c3ad5ddc5016d6ef1b87d050f2c9bc23136b2 (patch)
tree3f4abc754abd1e242b62458aeff6e11a1b0ac39d /src
parent9312bed4728e9f550fea131040cae199b3ab0c22 (diff)
downloadangular.js-885c3ad5ddc5016d6ef1b87d050f2c9bc23136b2.tar.bz2
fixing lint warnings
Diffstat (limited to 'src')
-rw-r--r--src/Angular.js4
-rw-r--r--src/Injector.js4
-rw-r--r--src/jqLite.js8
-rw-r--r--src/parser.js1
4 files changed, 9 insertions, 8 deletions
diff --git a/src/Angular.js b/src/Angular.js
index b2949646..c815d5fc 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -1027,8 +1027,8 @@ function assertArg(arg, name, reason) {
if (window.console) window.console.log(error.stack);
throw error;
}
-};
+}
function assertArgFn(arg, name) {
assertArg(isFunction(arg, name, 'not a function'));
-};
+}
diff --git a/src/Injector.js b/src/Injector.js
index b3d8f113..be00ff3e 100644
--- a/src/Injector.js
+++ b/src/Injector.js
@@ -74,7 +74,7 @@ function createInjector(providerScope, providers, cache) {
}
function injectService(services, fn) {
- return extend(fn, {$inject:services});;
+ return extend(fn, {$inject:services});
}
function injectUpdateView(fn) {
@@ -113,4 +113,4 @@ function injectionArgs(fn) {
});
}
return fn.$inject;
-};
+}
diff --git a/src/jqLite.js b/src/jqLite.js
index 9c96df4a..8554263a 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -251,11 +251,13 @@ forEach({
* Properties: writes return selection, reads return first value
*/
JQLite.prototype[name] = function(arg1, arg2) {
+ var i, key;
+
if ((fn.length == 2 ? arg1 : arg2) === undefined) {
if (isObject(arg1)) {
// we are a write, but the object properties are the key/values
- for(var i=0; i < this.length; i++) {
- for ( var key in arg1) {
+ for(i=0; i < this.length; i++) {
+ for (key in arg1) {
fn(this[i], key, arg1[key]);
}
}
@@ -268,7 +270,7 @@ forEach({
}
} else {
// we are a write, so apply to all children
- for(var i=0; i < this.length; i++) {
+ for(i=0; i < this.length; i++) {
fn(this[i], arg1, arg2);
}
// return self for chaining
diff --git a/src/parser.js b/src/parser.js
index 0a19dad9..6916a3f7 100644
--- a/src/parser.js
+++ b/src/parser.js
@@ -362,7 +362,6 @@ function parser(text, json){
var token = expect();
var formatter = angularFormatter[token.text];
var argFns = [];
- var token;
if (!formatter) throwError('is not a valid formatter.', token);
while(true) {
if ((token = expect(':'))) {