delegates-$4.lzx
<canvas height="150" width="100%">
<dataset name="people">
<people>
<person name="John"/>
<person name="Eric"/>
<person name="Andrew"/>
<person name="chrisk"/>
<person name="Sarah"/>
<person name="Pablo"/>
<person name="Adam"/>
</people>
</dataset>
<view>
<text>
<datapath xpath="people:/people/person/@name">
<handler name="onclones">
var lastclone = this.clones[ this.clones.length - 1 ];
if( typeof this.del == "undefined" ) {
this.del = new lz.Delegate( this, "replicationComplete")
} else {
this.del.unregisterAll();
}
this.del.register( lastclone, "oninit");
</handler>
<method name="replicationComplete" args="ignore=null">
lastRepText.setAttribute("text", "The last view has been replicated");
</method>
</datapath>
</text>
<simplelayout axis="y"/>
</view>
<text id="lastRepText" bgcolor="green" resize="true">
Replication incomplete
</text>
<simplelayout axis="y"/>
</canvas>
Cross References
Named Instances