From f2fab498303e00d199cb3d19a008670e214d5c10 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Tue, 22 Oct 2013 14:41:21 -0700 Subject: style: make jshint happy --- src/ng/directive/ngClass.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ng/directive/ngClass.js') diff --git a/src/ng/directive/ngClass.js b/src/ng/directive/ngClass.js index 7fcdcfec..39568f6a 100644 --- a/src/ng/directive/ngClass.js +++ b/src/ng/directive/ngClass.js @@ -6,7 +6,7 @@ function classDirective(name, selector) { return { restrict: 'AC', link: function(scope, element, attr) { - var oldVal = undefined; + var oldVal; scope.$watch(attr[name], ngClassWatchAction, true); @@ -17,6 +17,7 @@ function classDirective(name, selector) { if (name !== 'ngClass') { scope.$watch('$index', function($index, old$index) { + // jshint bitwise: false var mod = $index & 1; if (mod !== old$index & 1) { if (mod === selector) { @@ -63,7 +64,7 @@ function classDirective(name, selector) { } return classVal; - }; + } } }; }; -- cgit v1.2.3