package.dist.module-min.proxy.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mikado Show documentation
Show all versions of mikado Show documentation
Web's fastest template library to build user interfaces.
The newest version!
import{ProxyHandler,ProxyCache}from"./type.js";import{Cache}from"./factory.js";const proxy=window.Proxy||function(){function a(a,b){for(const c in this.path=b.path,this.fn=b.fn,a)this.define(a,c,a[c]);return a._mkx=this,a}return a.prototype.define=function(a,b,c){const d=this;Object.defineProperty(a,b,{get:function(){return!1,c},set:function(a){!1,proxy_loop(d,c=a,b)}})},a}();export default function proxy_create(a,b,c){const d=a._mkx;if(d)return d.path=b,a;return new proxy(a,{path:b,fn:c,get,set})}function get(a,b){return!1,"_mkx"===b?this:a[b]}function set(a,b,c){return!1,proxy_loop(this,c,b),a[b]=c,!0}function proxy_loop(a,b,c){const d=a.fn[c];if(d)for(let c=0;c
© 2015 - 2025 Weber Informatics LLC | Privacy Policy