Author: max
Date: 2007-08-15 11:26:15 -0700 (Wed, 15 Aug 2007)
New Revision: 6065

Modified:
   openlaszlo/branches/wafflecone/lps/components/utils/replicator/replicator.lzx
Log:
Change 20070815-maxcarlson-h by [EMAIL PROTECTED] on 2007-08-15 11:06:48 PDT
    in /Users/maxcarlson/openlaszlo/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary: Fix brain-o in replicator

New Features:

Bugs Fixed: LPP-4405 'Implement ExplicitReplication'

Technical Reviewer: ptw
QA Reviewer: promanik
Doc Reviewer: (pending)

Documentation:

Release Notes: Lock and unlock layouts at the right time.

Details:
    

Tests: 
http://localhost:8080/wafflecone/test/explicit-replicators/lazy-replicator.lzx, 
http://localhost:8080/wafflecone/test/explicit-replicators/replicator.lzx and 
http://localhost:8080/wafflecone/test/explicit-replicators/test-replicator.lzx 
pass in SWF and DHTML. 



Modified: 
openlaszlo/branches/wafflecone/lps/components/utils/replicator/replicator.lzx
===================================================================
--- 
openlaszlo/branches/wafflecone/lps/components/utils/replicator/replicator.lzx   
    2007-08-15 18:23:08 UTC (rev 6064)
+++ 
openlaszlo/branches/wafflecone/lps/components/utils/replicator/replicator.lzx   
    2007-08-15 18:26:15 UTC (rev 6065)
@@ -266,19 +266,17 @@
 
     function setData (v, n) {
         if (v) {
-            for (var l in v.layouts) {
-                v.layouts[l].lock();
-            }
             v.setData( this.nodes[ n ] );
             if (v['applyData']) v.applyData(this.nodes[n]);
-            for (var l in v.layouts) {
-                v.layouts[l].unlock();
-            }
         }
     }
 
     //  @keywords private
     function __adjustVisibleClones () {
+        var p = this.parent;
+        for (var l in p.layouts) {
+            p.layouts[l].lock();
+        }
         while( this.clones.length ) this.poolClone( this.clones.pop() );
         if (this['nodes'] != null) {
             var l = this.nodes.length;
@@ -288,6 +286,9 @@
                 this.clones[ i ] = cl;
             }
         }
+        for (var l in p.layouts) {
+            p.layouts[l].unlock();
+        }
     }
 
     //  Gets the clone for the given offset, scrolling it into view first


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to