Skip to content

Commit

Permalink
applyBindingsToDescendants called with extra parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesbradshaw committed Mar 13, 2012
1 parent 38c9784 commit f3e46fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/bindingAttributeBehaviors.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ describe('Binding attribute syntax', {
ko.bindingHandlers.bindChildrenWithCustomContext = {
init: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
var innerContext = bindingContext.createChildContext({ myCustomData: 123 });
ko.applyBindingsToDescendants(innerContext, element, true);
ko.applyBindingsToDescendants(innerContext, element);
return { 'controlsDescendantBindings': true };
}
};
Expand All @@ -333,7 +333,7 @@ describe('Binding attribute syntax', {
ko.bindingHandlers.bindChildrenWithCustomContext = {
init: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
var innerContext = bindingContext.createChildContext({ myCustomData: 123 });
ko.applyBindingsToDescendants(innerContext, element, true);
ko.applyBindingsToDescendants(innerContext, element);
return { 'controlsDescendantBindings': true };
}
};
Expand All @@ -350,7 +350,7 @@ describe('Binding attribute syntax', {
init: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
var innerContext = bindingContext.createChildContext({ myCustomData: 123 });
innerContext.customValue = 'xyz';
ko.applyBindingsToDescendants(innerContext, element, true);
ko.applyBindingsToDescendants(innerContext, element);
return { 'controlsDescendantBindings': true };
}
};
Expand Down

0 comments on commit f3e46fc

Please sign in to comment.