Skip to content

Commit

Permalink
Merge pull request knockout#386 from GilesBradshaw/MinorSpecFix
Browse files Browse the repository at this point in the history
applyBindingsToDescendants called with extra parameter in spec
  • Loading branch information
SteveSanderson committed Mar 15, 2012
2 parents f2031a4 + f3e46fc commit bc98894
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 @@ -321,7 +321,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 @@ -338,7 +338,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 @@ -355,7 +355,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 bc98894

Please sign in to comment.