Author: ptw
Date: 2007-12-17 17:14:14 -0800 (Mon, 17 Dec 2007)
New Revision: 7575

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Log:
Change 20071217-ptw-P by [EMAIL PROTECTED] on 2007-12-17 17:56:31 EST
    in /Users/ptw/OpenLaszlo/ringding-2
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Brain-oh in LzSprite.js

Bugs Fixed:
LPP-5274 'Error: this.__parent has no properties (DHTML)'

Technical Reviewer: [EMAIL PROTECTED] (pending)
QA Reviewer: maymye (pending)

Details:
    Test for __parent before using it

Tests:
    Environment: OS X, FF2
    Launch laszlo-explorer in flash
    Choose Demos in navbar
    Choose Amazon
    Select the Launch in DHTML button
    Observe green checkmark at bottom right of Amazon window, NO LONGER
    turns to a red X



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js   2007-12-18 
01:08:07 UTC (rev 7574)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js   2007-12-18 
01:14:14 UTC (rev 7575)
@@ -1184,7 +1184,7 @@
     this.__LZdeleted = true;
 
     // Remove from parent if the parent is not going to be GC-ed
-    if (! this.__parent.__LZdeleted) {
+    if ((this.__parent_) && (! this.__parent.__LZdeleted)) {
       var pc = this.__parent.__children;
       for (var i = pc.length - 1; i >= 0; i--) {
         if (pc[i] === this) {


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

Reply via email to