From 0196411dbe179afe24f4faa6d6503ff3f69472da Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Wed, 30 Nov 2011 12:23:58 -0800 Subject: refactor(scope.$watch): rearrange arguments passed into watcher (newValue, oldValue, scope) As scopes are injected into controllers now, you have the reference anyway, so having scope as first argument makes no sense… Breaks $watcher gets arguments in different order (newValue, oldValue, scope)--- docs/src/templates/docs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/src/templates') diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js index bf279df5..7fb9cb22 100644 --- a/docs/src/templates/docs.js +++ b/docs/src/templates/docs.js @@ -19,7 +19,7 @@ function DocsController(scope, $location, $window, $cookies, $filter) { $location.path('/api').replace(); } - scope.$watch('$location.path()', function(scope, path) { + scope.$watch('$location.path()', function(path) { // ignore non-doc links which are used in examples if (DOCS_PATH.test(path)) { var parts = path.split('/'); -- cgit v1.2.3