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

Skip to content

Commit 655fccc

Browse files
hzoocaitp
authored andcommitted
style(*): add disallowSpacesInNamedFunctionExpression beforeOpeningRoundBrace
1 parent 40bbc98 commit 655fccc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.jscs.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"disallowSpaceAfterObjectKeys": true,
77
"disallowSpaceAfterPrefixUnaryOperators": ["!"],
88
"disallowSpaceBeforeBinaryOperators": [","],
9+
"disallowSpacesInNamedFunctionExpression": {
10+
"beforeOpeningRoundBrace": true
11+
},
912
"disallowSpacesInsideParentheses": true,
1013
"disallowTrailingComma": true,
1114
"disallowTrailingWhitespace": true,

src/ngRoute/directive/ngView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function ngViewFactory($route, $anchorScroll, $animate) {
229229
// function is called before linking the content, which would apply child
230230
// directives to non existing elements.
231231
var clone = $transclude(newScope, function(clone) {
232-
$animate.enter(clone, null, currentElement || $element).then(function onNgViewEnter () {
232+
$animate.enter(clone, null, currentElement || $element).then(function onNgViewEnter() {
233233
if (angular.isDefined(autoScrollExp)
234234
&& (!autoScrollExp || scope.$eval(autoScrollExp))) {
235235
$anchorScroll();

0 commit comments

Comments
 (0)