there's a public interface for this:
http://www.openlaszlo.org/lps-latest/docs/reference/datapath.html#meth-setNodes
A
On Feb 13, Matthew Cloy wrote:
> I needed single node replication to match the behaviour of multi node
> replication. (i.e. treat a single node the same as multiple nodes)
>
> Anyone see any problems with the following solution (in 3.2cr2 at present,
> perhaps moving to 3.3.3 soon)?
> As far as I can tell the array is deleted in __LZHandleMultiNodes.
>
> LzDatapath.prototype.__LZHandleSingleNode = function ( node )
> {
> var nodes = new Array();
> nodes.push(node);
> this.__LZHandleMultiNodes(nodes);
> }
>
> I'll probably add it as an option on my datapaths, but is it fundamentally
> sound?
>
> Cheers!
> Matt
>