[Laszlo-dev] [Fwd: For Review: Change 20070905-maxcarlson-z Summary: Update replicator with suggestions from a.bargull@intensis.de]

Henry Minsky henry.minsky at gmail.com
Thu Sep 6 13:27:06 PDT 2007


On a related note, in the replicator __adjustVisibleClones, it tries
to find the layout
of the parent, to lock the layout:

    function __adjustVisibleClones () {
        var p = this.parent;
        for (var l in p.layouts) {
            Debug.info("__adjustVisibleClones layout", p.layouts[l]);
            p.layouts[l].lock();
        }


Shouldn't this be the immediateparent (which is bound to
this.container in the construct method)?

    function __adjustVisibleClones () {
   ==>     var p = this.container;
        for (var l in p.layouts) {
            Debug.info("__adjustVisibleClones layout", p.layouts[l]);
            p.layouts[l].lock();
        }


More information about the Laszlo-dev mailing list