index.js (261B)
1 import ko from 'knockout'; 2 3 // From https://stackoverflow.com/a/23638213 4 // I do not understand how it works 5 ko.bindingHandlers.element = { 6 init: function (element, valueAccessor) { 7 const target = valueAccessor(); 8 target(element); 9 }, 10 };
