diff options
| author | Misko Hevery | 2010-04-02 11:10:36 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-02 11:10:36 -0700 |
| commit | d717020911a350a5ea3c0a985c57d56c8fcad607 (patch) | |
| tree | 0b0a9f14cdfdcdf0dfb4c3fd607daf5ab9f9901d /src/Scope.js | |
| parent | 85f13d602e31424b2e2d18172872f14a24c31135 (diff) | |
| download | angular.js-d717020911a350a5ea3c0a985c57d56c8fcad607.tar.bz2 | |
widgets now work properly
Diffstat (limited to 'src/Scope.js')
| -rw-r--r-- | src/Scope.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Scope.js b/src/Scope.js index ba86e24f..ae5bd384 100644 --- a/src/Scope.js +++ b/src/Scope.js @@ -102,6 +102,7 @@ function createScope(parent, Class) { instance = new Behavior(); extend(api, { + 'this': instance, $parent: parent, $bind: bind(instance, bind, instance), $get: bind(instance, getter, instance), @@ -162,7 +163,7 @@ function createScope(parent, Class) { behavior.$root = instance; behavior.$parent = instance; } - + (parent.$onEval || noop)(instance.$eval); Class.apply(instance, slice.call(arguments, 2, arguments.length)); return instance; |
