fix(*): name all anonymous watch functions in Angular

This will allow us to see function names in Batarang and debugger.

Closes #1119
This commit is contained in:
Shyam Seshadri
2012-07-06 15:23:40 +05:30
committed by Misko Hevery
parent f7a8f17fc7
commit 2c6aa4c300
17 changed files with 31 additions and 30 deletions

View File

@@ -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('/'),