Fix bug in Window. Add return statement to JSBody script for

prompt(message,defaultValue)
This commit is contained in:
jfwittmann 2015-10-21 14:45:10 +02:00
parent ce83560279
commit 8d409b9a2b

View File

@ -93,7 +93,7 @@ public abstract class Window implements JSObject, WindowEventTarget, StorageProv
return prompt(message, ""); return prompt(message, "");
} }
@JSBody(params = { "message", "defaultValue" }, script = "prompt(message, defaultValue);") @JSBody(params = { "message", "defaultValue" }, script = "return prompt(message, defaultValue);")
public static native String prompt(String message, String defaultValue); public static native String prompt(String message, String defaultValue);
@JSBody(params = { "handler", "delay" }, script = "return setTimeout(handler, delay);") @JSBody(params = { "handler", "delay" }, script = "return setTimeout(handler, delay);")