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/ng/directive/booleanAttrs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ng/directive/booleanAttrs.js') diff --git a/src/ng/directive/booleanAttrs.js b/src/ng/directive/booleanAttrs.js index 2cc26ce7..8902c35d 100644 --- a/src/ng/directive/booleanAttrs.js +++ b/src/ng/directive/booleanAttrs.js @@ -284,7 +284,7 @@ forEach(BOOLEAN_ATTR, function(propName, attrName) { priority: 100, compile: function() { return function(scope, element, attr) { - scope.$watch(attr[normalized], function(value) { + scope.$watch(attr[normalized], function ngBooleanAttrWatchAction(value) { attr.$set(attrName, !!value); }); }; -- cgit v1.2.3