The Knockout.js bootstrap module in Magento 2 includes the following module via a define
dependency.
Magento_Ui/js/lib/knockout/extender/bound-nodes
Technically speaking, this module creates wrappers for the ko.applyBindings
and ko.cleanNode
methods. These wrappers will stash certain view models and nodes in a private javascript WeakMap
, and then return a single registry object that will let you access items in the WeakMap
.
However, it's not clear what end-user-programmer facing features this enables. Does anyone here know what the Magento_Ui/js/lib/knockout/extender/bound-nodes
module is actually for? Or is familiar enough with Knockout.js internals to figure things out?