Revision: 2877
          http://vexi.svn.sourceforge.net/vexi/?rev=2877&view=rev
Author:   clrg
Date:     2008-04-17 02:41:42 -0700 (Thu, 17 Apr 2008)

Log Message:
-----------
Fix popupable exception - needs more debugging / understanding

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/popupable.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/popupable.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/popupable.t    
2008-04-17 09:40:44 UTC (rev 2876)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/role/popupable.t    
2008-04-17 09:41:42 UTC (rev 2877)
@@ -113,6 +113,7 @@
     
     /** initialize popbox */
     static.popboxWrite = function(v) {
+        //if (v==null) throw "null popbox write";
         var s = trapee.surface;
         if (trapee.v_popbox) {
             if (s) s.delPopBox(trapee.v_popbox);
@@ -137,7 +138,7 @@
         if (s == o) { cascade = v; return; }
         
         // clean up old surface
-        if (o) {
+        if (o and trapee.v_popbox) { // FIXME: why is the 2nd check required?
             if (trapee.popped) o.pop(trapee, static.DOWN, 0);
             o.delPopBox(trapee);
             o.Press1 --= trapee.v_pressWrite;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to