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 --- src/bootstrap/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bootstrap/bootstrap.js') diff --git a/src/bootstrap/bootstrap.js b/src/bootstrap/bootstrap.js index 8a398ad3..d21ed941 100644 --- a/src/bootstrap/bootstrap.js +++ b/src/bootstrap/bootstrap.js @@ -9,7 +9,7 @@ directive.dropdownToggle = return { restrict: 'C', link: function(scope, element, attrs) { - scope.$watch(function(){return $location.path();}, function() { + scope.$watch(function dropdownTogglePathWatch(){return $location.path();}, function dropdownTogglePathWatchAction() { close && close(); }); -- cgit v1.2.3