Revision: 3510
          http://vexi.svn.sourceforge.net/vexi/?rev=3510&view=rev
Author:   clrg
Date:     2009-05-26 02:29:53 +0000 (Tue, 26 May 2009)

Log Message:
-----------
Fix a FIXME

Modified Paths:
--------------
    trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp

Modified: trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp
===================================================================
--- trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp  2009-05-26 02:18:29 UTC 
(rev 3509)
+++ trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp  2009-05-26 02:29:53 UTC 
(rev 3510)
@@ -1347,8 +1347,8 @@
             }
             if (!text.isEmpty()) { setConstrain(); dirty(); }
         case "text":
-            // FIXME: must be a better way to get JS to JSString
-            JSString s = value==null ? Text.EMPTY_STRING : 
(JSString)JSU.S(JSU.toString(value));
+            JSString s = value instanceof JSString ? (JSString)value
+                    : (value==null ? Text.EMPTY_STRING : 
(JSString)JSU.S(JSU.toString(value)));
             if (s.equals(text.str)) return;
             text = text.setString(s);
             setConstrain();


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

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to