2002/08/16 23:40:42
[org.ibex.core.git] / src / org / xwt / XWT.java
index 00b7066..1d2326d 100644 (file)
@@ -198,8 +198,8 @@ public final class XWT extends JSObject {
     private static final JSObject.JSFunction newBox = new JSObject.JSFunction() {
             public Object call(Context cx, Scriptable thisObj, Scriptable ctorObj, Object[] args) throws JavaScriptException {
 
-                if (args.length > 0 && args[0] != null && !args[0].equals("box") && !(Thread.currentThread() instanceof ThreadMessage))
-                    if (Log.on) Log.log(XWT.class, "DEPRECATED: you should not call xwt.newBox() from the foreground thread at " +
+                if (args.length > 0)
+                    if (Log.on) Log.log(XWT.class, "DEPRECATED: xwt.newBox() with multiple arguments is deprecated; use xwt.newBox().apply() " +
                                         Context.enter().interpreterSourceFile + ":" + Context.enter().interpreterLine);
 
                 Function callback = null;