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/content/cookbook/mvc.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/content/cookbook/mvc.ngdoc') diff --git a/docs/content/cookbook/mvc.ngdoc b/docs/content/cookbook/mvc.ngdoc index 71e771bd..cdb5ebdc 100644 --- a/docs/content/cookbook/mvc.ngdoc +++ b/docs/content/cookbook/mvc.ngdoc @@ -66,7 +66,7 @@ no connection between the controller and the view. function same(a, b, c) { return (a==b && b==c) ? a : '';}; } - function readUrl(scope, value) { + function readUrl(value) { if (value) { value = value.split('/'); $scope.nextMove = value[1]; -- cgit v1.2.3