From a40e6484a14a6132ce5d019a79699961ca1dbb18 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sun, 3 Mar 2024 17:02:38 +0100 Subject: [PATCH] KnockoutJS simplify applyBindingsToNodeInternal --- vendors/knockout/src/binding/bindingAttributeSyntax.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/vendors/knockout/src/binding/bindingAttributeSyntax.js b/vendors/knockout/src/binding/bindingAttributeSyntax.js index adaf81c31..bf0f9d4bc 100644 --- a/vendors/knockout/src/binding/bindingAttributeSyntax.js +++ b/vendors/knockout/src/binding/bindingAttributeSyntax.js @@ -236,7 +236,7 @@ function applyBindingsToNodeAndDescendantsInternal(bindingContext, nodeVerified) // (1) We need to store the binding info for the node (all element nodes) // (2) It might have bindings (e.g., it has a data-bind attribute, or it's a marker for a containerless template) if (isElement || ko.bindingProvider.nodeHasBindings(nodeVerified)) - bindingContextForDescendants = applyBindingsToNodeInternal(nodeVerified, null, bindingContext)['bindingContextForDescendants']; + bindingContextForDescendants = applyBindingsToNodeInternal(nodeVerified, null, bindingContext); // Don't want bindings that operate on text nodes to mutate