PageSourceSearch

https://patoto.org/js/extend-ko.min.js

js patoto.org collected 2026-10-01 00:46:51 UTC 1,585 bytes, 7 lines download raw bytes

1(function(){'use strict';function isVirtualElement(node){return node.nodeType===8;}
2function getRealElement(el,isUpdate){if(isVirtualElement(el)){if(isUpdate){return $(el).next('span');}
3return $('<span>').insertAfter(el);}
4return $(el);}
5ko.bindingHandlers.blockLoader={update:function(element,displayBlockLoader){if(ko.unwrap(displayBlockLoader())){$(element).spinner(true);}else{$(element).spinner(false);}}};ko.bindingHandlers.i18n={init:function(element,value){getRealElement(element).text($.__(ko.unwrap(value()||'')));},update:function(element,value){getRealElement(element,true).text($.__(ko.unwrap(value()||'')));}};ko.virtualElements.allowedBindings.i18n=true;ko.bindingHandlers.scope={init:function(){return{controlsDescendantBindings:true};}};ko.virtualElements.allowedBindings.scope=true;ko.bindingHandlers.bindHtml={init:function(){return{controlsDescendantBindings:true};},update:function(el,valueAccessor){var html=ko.utils.unwrapObservable(valueAccessor());ko.virtualElements.emptyNode(el);if(!_.isNull(html)&&!_.isUndefined(html)){if(!_.isString(html)){html=html.toString();}
6el.innerHTML=html;}
7ko.utils.arrayForEach(el.childNodes,ko.cleanNode);$(el).trigger('contentUpdated');}};ko.bindingHandlers.afterRender={init:function(element,valueAccessor,allBindings,viewModel){var callback=valueAccessor();if(typeof callback==='function'){callback.call(viewModel,element,viewModel);}}};ko.bindingHandlers.mageInit={init:function(el,valueAccessor){var data=valueAccessor();_.each(data,function(config,component){$.breeze.mount(component,{settings:config,el:el});});}};})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.