Skip to content

Commit 6794c2b

Browse files
committed
Update devDependencies and jsbeautify code
1 parent fca3399 commit 6794c2b

3 files changed

Lines changed: 15 additions & 13 deletions

File tree

dist/angular-validation.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@
566566
}
567567

568568
var setFocus = function(isValid) {
569-
if(isValid) {
569+
if (isValid) {
570570
delete focusElements[index];
571571
} else {
572572
focusElements[index] = element[0];
@@ -577,7 +577,8 @@
577577
}
578578
};
579579

580-
isValid.constructor === Object ? isValid.then(setFocus) : setFocus(isValid);
580+
if (isValid.constructor === Object) isValid.then(setFocus);
581+
else setFocus(isValid);
581582
});
582583

583584
/**

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@
2929
"bugs": "https://github.com/huei90/angular-validation/issues",
3030
"devDependencies": {
3131
"grunt": "~0.4.4",
32-
"grunt-browser-sync": "~1.5.3",
32+
"grunt-browser-sync": "~2.1.3",
3333
"grunt-contrib-clean": "~0.6.0",
3434
"grunt-contrib-concat": "~0.5.0",
35-
"grunt-contrib-copy": "~0.7.0",
36-
"grunt-contrib-jshint": "^0.10.0",
37-
"grunt-contrib-uglify": "~0.6.0",
35+
"grunt-contrib-copy": "~0.8.0",
36+
"grunt-contrib-jshint": "^0.11.2",
37+
"grunt-contrib-uglify": "~0.9.1",
3838
"grunt-contrib-watch": "~0.6.1",
3939
"grunt-jsbeautifier": "^0.2.7",
40-
"grunt-karma": "~0.9.0",
40+
"grunt-karma": "~0.11.0",
4141
"karma": "~0.12.1",
4242
"karma-chrome-launcher": "~0.1.2",
4343
"karma-coffee-preprocessor": "~0.2.1",
4444
"karma-firefox-launcher": "~0.1.2",
4545
"karma-html2js-preprocessor": "~0.1.0",
46-
"karma-jasmine": "~0.1.4",
47-
"karma-phantomjs-launcher": "~0.1.1",
46+
"karma-jasmine": "~0.3.5",
47+
"karma-phantomjs-launcher": "~0.2.0",
4848
"karma-requirejs": "~0.2.0",
4949
"karma-script-launcher": "~0.1.0",
50-
"load-grunt-tasks": "~1.0.0",
50+
"load-grunt-tasks": "~3.2.0",
5151
"requirejs": "~2.1.14",
52-
"time-grunt": "~1.0.0"
52+
"time-grunt": "~1.2.1"
5353
}
5454
}

src/directive.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
}
275275

276276
var setFocus = function(isValid) {
277-
if(isValid) {
277+
if (isValid) {
278278
delete focusElements[index];
279279
} else {
280280
focusElements[index] = element[0];
@@ -285,7 +285,8 @@
285285
}
286286
};
287287

288-
isValid.constructor === Object ? isValid.then(setFocus) : setFocus(isValid);
288+
if (isValid.constructor === Object) isValid.then(setFocus);
289+
else setFocus(isValid);
289290
});
290291

291292
/**

0 commit comments

Comments
 (0)