this.clones = []; this._cloneprops = []; this._clonepool = []; super.construct(p, a); this.container = this.immediateparent; this.mask = this.container.immediateparent; this._pointer = null; this.dataset = null; super.destroy(); 1 ) { if ($debug) Debug.warn("%s: only a single child view is replicated", this); this.container.createChildren( c ); } else { this.__LZinstantiationDone(); } ]]> this.setNodes(n); this.nodes.splice(idx, 0, n); this._cloneprops.splice(idx,0, null); // maintain cloneprops indices this.__adjustVisibleClones(); this.setClonePropertyByCN( v.clonenumber, prop ,val ); if ( this._cloneprops[ n ] == null ) { this._cloneprops[ n ] = {}; } this._cloneprops[ n ][ prop ] = val; var v = this.getCloneIfVisible( n ); if ( v ) v.setAttribute( prop , val ); if ( v[ "update" ] ) v.update( v.data , n ); var v; if ( this._clonepool.length ) { v = this._clonepool.pop(); if (v.visible != true) v.setAttribute('visible', true ); } else { v = this._makeClone(); } return v; var v = this.container.makeChild( this.replicated ); v.setAttribute( "clonenumber", null ); // emulate datapath behavior v.setAttribute( "cloneManager", this ); return v; if ( c.clonenumber ) this.unbind( c ); if (c.visible != false) c.setAttribute('visible', false ); this._clonepool.push( c ); return this.clones[ n ]; if (v) { v.setAttribute('data', this.nodes[ n ]); v.applyData(this.nodes[n]); } this.ensureInView( n ); return this.clones[ n ]; = this.mask.height - y) { ny = this.mask.height - pos - this.replicatedsize; } else if (pos < -y) ny = -pos; if (y != ny) this.container.setAttribute('y', ny); ]]>