On 2010-10-28, at 19:48, André Bargull wrote:
> And here's the updated version of <replicator>#setData() which fixes this
> issue. (The internal <datapointer>#parsePath() is required to get the
> LzParsedPath instance.)
>
>
>> <method name="setData" args="v:*,n=null"><![CDATA[
>> if (v) {
>> v.setAttribute('data', this.nodes[ n ]);
>> var ptr = this._pointer;
>> if (ptr) {
>> var ppath = ptr.parsePath(this.xpath);
>> if (ppath && (ppath.operator != null || ppath.aggOperator != null)) {
>> v.applyData(this.nodes[n]);
>> }
>> } else {
>> // other data-source
>> v.applyData(this.nodes[n]);
>> }
>> }
>> ]]></method>
Surely the "lazy developer" is me. Really just that the developer cannot wrap
his head around datapath/pointers. And I still don't get it. Can you explain
your change a little more? Is simply calling `parsePath` somehow
side-effecting `nodes`?