aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
diff options
context:
space:
mode:
authorMisko Hevery2010-02-04 14:02:20 -0800
committerMisko Hevery2010-02-04 14:02:20 -0800
commit9f919c42f0885e39870195fab8ce2a22621119b7 (patch)
treee125755fd371c9be686763c9e7b1f280363de754 /src/Scope.js
parent1da18e73a4d09b2a1ace92a4094eeba014eb7dc4 (diff)
downloadangular.js-9f919c42f0885e39870195fab8ce2a22621119b7.tar.bz2
better handling of $invalidWidgets
Diffstat (limited to 'src/Scope.js')
-rw-r--r--src/Scope.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Scope.js b/src/Scope.js
index b8fadfa0..cedb0542 100644
--- a/src/Scope.js
+++ b/src/Scope.js
@@ -153,6 +153,11 @@ Scope.prototype = {
return expression({scope:this, datastore:datastore});
},
+ clearInvalid: function() {
+ var invalid = this.state['$invalidWidgets'];
+ while(invalid.length > 0) {invalid.pop();}
+ },
+
markInvalid: function(widget) {
this.state['$invalidWidgets'].push(widget);
},