aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/booleanAttrs.js
diff options
context:
space:
mode:
authorShyam Seshadri2012-07-06 15:23:40 +0530
committerMisko Hevery2012-09-06 16:06:25 -0700
commitca30fce28ca13284bfa1c926e810ed75cdcde499 (patch)
treee7e2a41e740312981fab5f1226f8bd1d98b07e62 /src/ng/directive/booleanAttrs.js
parentb6e4a71166c7f00f4140fd7ea8f0cd81b4487a3f (diff)
downloadangular.js-ca30fce28ca13284bfa1c926e810ed75cdcde499.tar.bz2
fix(*): name all anonymous watch functions in Angular
This will allow us to see function names in Batarang and debugger. Closes #1119
Diffstat (limited to 'src/ng/directive/booleanAttrs.js')
-rw-r--r--src/ng/directive/booleanAttrs.js2
1 files changed, 1 insertions, 1 deletions
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);
});
};