specialBoxProperties.put("Close", new SpecialBoxProperty() {
public void put(Box b, Object value) {
- if (b.getParent() == null && b.surface != null) b.surface.dispose();
+ if (b.getParent() == null && b.surface != null) b.surface.dispose(true);
}
});
if (Log.on) Log.log(this, "template " + templatename + " not found at " +
Context.enter().interpreterSourceFile + ":" + Context.enter().interpreterLine);
} else {
- if (!ThreadMessage.suspendThread()) try {
+ if (ThreadMessage.suspendThread()) try {
Function callback = args.length < 2 ? null : (Function)args[1];
t.apply(b, null, null, callback, 0, t.numUnits());
} finally {