From 2c6aa4c300073ef27fcce4c112646985d81a4fe4 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 --- src/bootstrap/bootstrap-prettify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bootstrap/bootstrap-prettify.js') diff --git a/src/bootstrap/bootstrap-prettify.js b/src/bootstrap/bootstrap-prettify.js index b458c832..821d690f 100644 --- a/src/bootstrap/bootstrap-prettify.js +++ b/src/bootstrap/bootstrap-prettify.js @@ -210,7 +210,7 @@ directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location', }, $delegate); }]); $provide.decorator('$rootScope', ['$delegate', function(embedRootScope) { - docsRootScope.$watch(function() { + docsRootScope.$watch(function embedRootScopeDigestWatch() { embedRootScope.$digest(); }); return embedRootScope; -- cgit v1.2.3