diff options
| author | Misko Hevery | 2010-09-14 23:22:15 +0200 |
|---|---|---|
| committer | Misko Hevery | 2010-09-14 23:22:15 +0200 |
| commit | 894ffadc8c35da6c7daf3e16a9f4931b24f3b231 (patch) | |
| tree | b96beb2111540f928bfcf410afae8036c312c046 /src | |
| parent | e3f760fbadedc977d9f5f461feafbaecab5a9046 (diff) | |
| download | angular.js-894ffadc8c35da6c7daf3e16a9f4931b24f3b231.tar.bz2 | |
Fixed all trivial jslint violations
Diffstat (limited to 'src')
| -rw-r--r-- | src/Angular.js | 2 | ||||
| -rw-r--r-- | src/Scope.js | 2 | ||||
| -rw-r--r-- | src/directives.js | 8 | ||||
| -rw-r--r-- | src/scenario/DSL.js | 4 | ||||
| -rw-r--r-- | src/scenario/Runner.js | 4 | ||||
| -rw-r--r-- | src/services.js | 8 |
6 files changed, 14 insertions, 14 deletions
diff --git a/src/Angular.js b/src/Angular.js index c75908a7..1c75a063 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -94,7 +94,7 @@ function extend(dst) { function inherit(parent, extra) { return extend(new (extend(function(){}, {prototype:parent}))(), extra); -}; +} function noop() {} function identity($) {return $;} diff --git a/src/Scope.js b/src/Scope.js index a2ee07d9..c2a4f098 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -44,7 +44,7 @@ function setter(instance, path, value){ } /////////////////////////////////// -var scopeId = 0; +var scopeId = 0, getterFnCache = {}, compileCache = {}, JS_KEYWORDS = {}; diff --git a/src/directives.js b/src/directives.js index 8599d01d..994ef90e 100644 --- a/src/directives.js +++ b/src/directives.js @@ -34,7 +34,7 @@ angularDirective("ng:bind", function(expression){ }); this.$element = oldElement; if (lastValue === value && lastError == error) return; - isHtml = value instanceof HTML, + isHtml = value instanceof HTML; isDomElement = isElement(value); if (!isHtml && !isDomElement && isObject(value)) { value = toJson(value); @@ -85,7 +85,7 @@ function compileBindTemplate(template){ else if (isObject(value)) value = toJson(value, true); parts.push(value); - }; + } self.$element = oldElement; return parts.join(''); }; @@ -133,7 +133,7 @@ angularDirective("ng:bind-attr", function(expression){ element.attr(key, value); } } - }; + } }, element); }; }); @@ -187,7 +187,7 @@ angularWidget("@ng:repeat", function(expression, element){ lastElement = childScope.$element; index ++; } - }; + } // shrink children while(children.length > index) { children.pop().$element.remove(); diff --git a/src/scenario/DSL.js b/src/scenario/DSL.js index 0607238c..dc85ea45 100644 --- a/src/scenario/DSL.js +++ b/src/scenario/DSL.js @@ -24,7 +24,7 @@ angular.scenario.dsl.browser = { href: "", hash: "", toEqual: function(url) { - return (this.hash == "" ? (url == this.href) : + return (this.hash === "" ? (url == this.href) : (url == (this.href + "/#/" + this.hash))); }, setLocation: function(url) { @@ -56,7 +56,7 @@ angular.scenario.dsl.input = function(selector) { }); } }; -}, +}; angular.scenario.dsl.NG_BIND_PATTERN =/\{\{[^\}]+\}\}/; diff --git a/src/scenario/Runner.js b/src/scenario/Runner.js index d1a9271b..77969618 100644 --- a/src/scenario/Runner.js +++ b/src/scenario/Runner.js @@ -107,7 +107,7 @@ angular.scenario.Runner.prototype = { } else { self.scope.$testrun.done = true; } - }; + } callback(); }, @@ -176,7 +176,7 @@ angular.scenario.Runner.prototype = { steps: futuresFulfilled}); done(); } - }; + } next(); return specThis; } diff --git a/src/services.js b/src/services.js index 41f179e9..31c5e7af 100644 --- a/src/services.js +++ b/src/services.js @@ -109,7 +109,7 @@ angularService('$exceptionHandler', function($log){ }, {inject:['$log']}); angularService("$hover", function(browser, document) { - var tooltip, self = this, error, width = 300, arrowWidth = 10, body = jqLite(document[0].body);; + var tooltip, self = this, error, width = 300, arrowWidth = 10, body = jqLite(document[0].body); browser.hover(function(element, show){ if (show && (error = element.attr(NG_EXCEPTION) || element.attr(NG_VALIDATION_ERROR))) { if (!tooltip) { @@ -345,7 +345,7 @@ angularService('$xhr.bulk', function($xhr, $error, $log){ }, {inject:['$xhr', '$xhr.error', '$log']}); angularService('$xhr.cache', function($xhr){ - var inflight = {}, self = this;; + var inflight = {}, self = this; function cache(method, url, post, callback, verifyCache){ if (isFunction(post)) { callback = post; @@ -418,7 +418,7 @@ angularService('$cookies', function($browser) { //delete cookies[name]; } } - }; + } }, {inject: ['$browser']}); @@ -455,4 +455,4 @@ angularService('$sessionStore', function($store) { return new SessionStore(); -}, {inject: ['$cookies']});
\ No newline at end of file +}, {inject: ['$cookies']}); |
