From ca30fce28ca13284bfa1c926e810ed75cdcde499 Mon Sep 17 00:00:00 2001 From: Shyam Seshadri Date: Fri, 6 Jul 2012 15:23:40 +0530 Subject: fix(*): name all anonymous watch functions in Angular This will allow us to see function names in Batarang and debugger. Closes #1119 --- docs/src/templates/js/docs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/src') diff --git a/docs/src/templates/js/docs.js b/docs/src/templates/js/docs.js index 436651e7..9813c241 100644 --- a/docs/src/templates/js/docs.js +++ b/docs/src/templates/js/docs.js @@ -297,7 +297,7 @@ docsApp.controller.DocsController = function($scope, $location, $window, $cookie tutorial: 'Tutorial', cookbook: 'Examples' }; - $scope.$watch(function() {return $location.path(); }, function(path) { + $scope.$watch(function docsPathWatch() {return $location.path(); }, function docsPathWatchAction(path) { // ignore non-doc links which are used in examples if (DOCS_PATH.test(path)) { var parts = path.split('/'), -- cgit v1.2.3