Skip to content

Commit

Permalink
Don't expose inheritParentVm
Browse files Browse the repository at this point in the history
  • Loading branch information
mbest committed Jun 3, 2017
1 parent 01237e7 commit bb70d30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/binding/bindingAttributeSyntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
}
}
}
ko.bindingContext.inheritParentVm = inheritParentVm;

// Extend the binding context hierarchy with a new view model object. If the parent context is watching
// any observables, the new child context will automatically get a dependency on the parent context.
Expand Down
2 changes: 1 addition & 1 deletion src/binding/defaultBindings/ifIfnotWith.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function makeWithIfBinding(bindingKey, isWith, isNot) {
isWith ?
bindingContext['createChildContext'](valueAccessor) :
ifCondition.isActive() ?
new ko.bindingContext(ko.bindingContext.inheritParentVm, bindingContext, null, function() { ifCondition(); }) :
bindingContext['extend'](function() { ifCondition(); return null; }) :
bindingContext,
element);
} else {
Expand Down

0 comments on commit bb70d30

Please sign in to comment.