Author: max
Date: 2007-11-30 17:22:28 -0800 (Fri, 30 Nov 2007)
New Revision: 7426

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
Log:
Change 20071130-maxcarlson-w by [EMAIL PROTECTED] on 2007-11-30 13:18:21 PST
    in /Users/maxcarlson/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix replication of text with local datasets

New Features:

Bugs Fixed: LPP-5173 - Change r7406 broke replication of text with local 
datasets

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

Documentation:

Release Notes:

Details: Apparently, sprites _do_ need recursive destruction in some cases.
    

Tests: See LPP-5173.



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as     2007-11-30 
21:39:24 UTC (rev 7425)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf/LzSprite.as     2007-12-01 
01:22:28 UTC (rev 7426)
@@ -915,17 +915,13 @@
   * 
   */
 LzSprite.prototype.destroy = function(recursive){
-    /* This does not work!
-     * -> Every subview of this sprite's owner has already removed itself, see 
LzView#destroy(..). 
-     * Therefore "this.owner.subviews" will be an empty array at this stage!
-     */
-    /*if (recursive) {
+    if (recursive) {
         if (this.owner.subviews) {
             for (var i = 0; i < this.owner.subviews.length; i++) {
                 this.owner.subviews[i].sprite.destroy(recursive);
             }
         }
-    }*/
+    }
 
     this.__LZFinishDestroyOnIdle();
 }


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

Reply via email to