aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/compile.js
diff options
context:
space:
mode:
authorShyam Seshadri2012-07-06 15:23:40 +0530
committerMisko Hevery2012-09-11 16:39:46 -0700
commit2c6aa4c300073ef27fcce4c112646985d81a4fe4 (patch)
tree7f481ff84b5b46ea8c3e0058ba710a61ac22effe /src/ng/compile.js
parentf7a8f17fc72f603de11ca89170bc8d1cad4dae6a (diff)
downloadangular.js-2c6aa4c300073ef27fcce4c112646985d81a4fe4.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/compile.js')
-rw-r--r--src/ng/compile.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index a569ca8e..ccdd1880 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -737,7 +737,7 @@ function $CompileProvider($provide) {
' (directive: ' + newScopeDirective.name + ')');
};
lastValue = scope[scopeName] = parentGet(parentScope);
- scope.$watch(function() {
+ scope.$watch(function parentValueWatch() {
var parentValue = parentGet(parentScope);
if (parentValue !== scope[scopeName]) {
@@ -996,7 +996,7 @@ function $CompileProvider($provide) {
bindings = parent.data('$binding') || [];
bindings.push(interpolateFn);
safeAddClass(parent.data('$binding', bindings), 'ng-binding');
- scope.$watch(interpolateFn, function(value) {
+ scope.$watch(interpolateFn, function interpolateFnWatchAction(value) {
node[0].nodeValue = value;
});
})
@@ -1026,7 +1026,7 @@ function $CompileProvider($provide) {
attr[name] = undefined;
($$observers[name] || ($$observers[name] = [])).$$inter = true;
(attr.$$observers && attr.$$observers[name].$$scope || scope).
- $watch(interpolateFn, function(value) {
+ $watch(interpolateFn, function interpolateFnWatchAction(value) {
attr.$set(name, value);
});
})