Skip to content

Commit e937cdf

Browse files
committed
removed unused property "shouldBindDescendants"
1 parent 4c42925 commit e937cdf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/binding/bindingAttributeSyntax.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ const _applyBindingsToNodeInternal = (node, sourceBindings, bindingContext) => {
519519

520520
// If this binding handler claims to control descendant bindings, make a note of this
521521
if (initResult && initResult.controlsDescendantBindings) {
522-
if (bindingHandlerThatControlsDescendantBindings !== undefined) {
522+
if (bindingHandlerThatControlsDescendantBindings) {
523523
throw new Error("Multiple bindings (" + bindingHandlerThatControlsDescendantBindings + " and " + bindingKey + ") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");
524524
}
525525
bindingHandlerThatControlsDescendantBindings = bindingKey;
@@ -542,10 +542,8 @@ const _applyBindingsToNodeInternal = (node, sourceBindings, bindingContext) => {
542542
});
543543
}
544544

545-
let shouldBindDescendants = bindingHandlerThatControlsDescendantBindings === undefined;
546545
return {
547-
shouldBindDescendants,
548-
bindingContextForDescendants: shouldBindDescendants && contextToExtend
546+
bindingContextForDescendants: bindingHandlerThatControlsDescendantBindings ? null : contextToExtend
549547
};
550548
};
551549

0 commit comments

Comments
 (0)