diff options
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; |
