Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

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

+3
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

+1-1
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)