/*-{
try {
if (script == null) return;
- $wnd.evalargs = args;
+ $wnd.vaadin.evalargs = args;
if (args != null)
for (var i=1;i<= args.length;i++)
- script = script.replace("$"+i, "$wnd.evalargs["+(i-1)+"]");
+ script = script.replace("$"+i, "$wnd.vaadin.evalargs["+(i-1)+"]");
eval(script);
- $wnd.evalargs = null;
+ delete $wnd.vaadin.evalargs;
} catch (e) {
}
}-*/;
* </p>
*
* <p>
+ * Use of this method should be avoided. Executing javascript often leads to
+ * cross-browser compatibility issues and regressions that are hard to
+ * resolve. Instead it is recommended to create new widgets with google web
+ * toolkit. For more info on creating own, reusable client-side widgets in
+ * Java, read corresponding chapter on Book of Vaadin.
+ * </p>
+ *
+ * <p>
* The script may contain markers indentified with "$x", where x is a one
* digit number. The number of markers must match to the number of optional
* Paintable reference parameters. The first marker is $1, second $2 and so