nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

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 };