UNPKG

ziggurat.js

Version:

a tiny modular js library for templates and other shorthands

2 lines (1 loc) 294 B
zg.mirror=class{constructor(e,t){this.name=e,Object.defineProperty(this,"v",{get:function(){return this._value},set:function(e){var t,n,s,o,i;this._value=e,n=zg.queryall(`zg-bind[name=${this.name}]`),s=[];for(t=0,i=n.length;t<i;t++)o=n[t],s.push(o.innerText=this._value);return s}}),this.v=t}}