Skip to content

Commit

Permalink
Fix #123 in master. Ensure createContext is passed through to nested …
Browse files Browse the repository at this point in the history
…scopes
  • Loading branch information
briancavalier committed Jul 16, 2013
1 parent 5fe8445 commit 2371067
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/plugin/wirePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ define(function(require) {
result = wrapChild(childPromise);

} else {
result = createChild(componentDef.spec);
result = createChild();
}

resolver.resolve(result);
Expand Down
4 changes: 3 additions & 1 deletion lib/scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@ define(function(require) {
}

// No factory found, treat object spec as a nested scope
return new Scope(self)
var options = { createContext: self.createContext };

return new Scope(self, options)
.init(component.spec)
.then(function (childScope) {
// TODO: find a lighter weight solution
Expand Down

0 comments on commit 2371067

Please sign in to comment.