diff options
| author | Misko Hevery | 2010-02-04 14:02:20 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-02-04 14:02:20 -0800 |
| commit | 9f919c42f0885e39870195fab8ce2a22621119b7 (patch) | |
| tree | e125755fd371c9be686763c9e7b1f280363de754 /src/Scope.js | |
| parent | 1da18e73a4d09b2a1ace92a4094eeba014eb7dc4 (diff) | |
| download | angular.js-9f919c42f0885e39870195fab8ce2a22621119b7.tar.bz2 | |
better handling of $invalidWidgets
Diffstat (limited to 'src/Scope.js')
| -rw-r--r-- | src/Scope.js | 5 |
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); }, |
