diff options
| author | Misko Hevery | 2010-03-18 12:20:06 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-03-18 12:20:06 -0700 |
| commit | 7634a3ed5227f8bc2a2ba83752d0e2c78adb6051 (patch) | |
| tree | ef94843f25eae83d0492b18149a084868829693c /src/Scope.js | |
| parent | f1b50b92ac69f5c58984f5e88015507552d29df2 (diff) | |
| download | angular.js-7634a3ed5227f8bc2a2ba83752d0e2c78adb6051.tar.bz2 | |
initial revision of new plugable compiler
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 daf4b36c..442477b4 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -10,6 +10,7 @@ function Scope(initialState, name) { if (name == "ROOT") { this.state['$root'] = this.state; } + this.set('$watch', bind(this, this.addWatchListener)); }; Scope.expressionCache = {}; @@ -202,5 +203,9 @@ Scope.prototype = { } }); return fired; + }, + + apply: function(fn) { + fn.apply(this.state, slice(arguments, 0, arguments.length)); } }; |
