From 655fccce3ad52fd85fd3a5624e187f6ac6675664 Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Mon, 20 Oct 2014 21:00:22 -0400 Subject: [PATCH] style(*): add disallowSpacesInNamedFunctionExpression beforeOpeningRoundBrace --- .jscs.json | 3 +++ src/ngRoute/directive/ngView.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.jscs.json b/.jscs.json index 290b342e8fd8..a52217d2d77a 100644 --- a/.jscs.json +++ b/.jscs.json @@ -6,6 +6,9 @@ "disallowSpaceAfterObjectKeys": true, "disallowSpaceAfterPrefixUnaryOperators": ["!"], "disallowSpaceBeforeBinaryOperators": [","], + "disallowSpacesInNamedFunctionExpression": { + "beforeOpeningRoundBrace": true + }, "disallowSpacesInsideParentheses": true, "disallowTrailingComma": true, "disallowTrailingWhitespace": true, diff --git a/src/ngRoute/directive/ngView.js b/src/ngRoute/directive/ngView.js index e4f6ad6edfad..dc73642209d8 100644 --- a/src/ngRoute/directive/ngView.js +++ b/src/ngRoute/directive/ngView.js @@ -229,7 +229,7 @@ function ngViewFactory($route, $anchorScroll, $animate) { // function is called before linking the content, which would apply child // directives to non existing elements. var clone = $transclude(newScope, function(clone) { - $animate.enter(clone, null, currentElement || $element).then(function onNgViewEnter () { + $animate.enter(clone, null, currentElement || $element).then(function onNgViewEnter() { if (angular.isDefined(autoScrollExp) && (!autoScrollExp || scope.$eval(autoScrollExp))) { $anchorScroll();