diff options
author | Grant Gayed <grant_gayed@ca.ibm.com> | 2012-01-06 16:44:34 -0500 |
---|---|---|
committer | Grant Gayed <grant_gayed@ca.ibm.com> | 2012-01-06 16:44:34 -0500 |
commit | 077201a83ce98a3dc328bd8c1d8ce1201c4ed8fd (patch) | |
tree | 7b05312047a4498aa36970e5ea21b2a49e39f281 | |
parent | 91fd332b230c9a94a8e5077345cfd2679a68f139 (diff) | |
download | eclipse.platform.swt-077201a83ce98a3dc328bd8c1d8ce1201c4ed8fd.tar.gz eclipse.platform.swt-077201a83ce98a3dc328bd8c1d8ce1201c4ed8fd.tar.xz eclipse.platform.swt-077201a83ce98a3dc328bd8c1d8ce1201c4ed8fd.zip |
fix Browser.evaluate() regression introduced by initial fix for bug
352383
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java index 1c828e4eb0..656aa7dec1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java @@ -392,21 +392,21 @@ public Object evaluate (String script) throws SWTException { buffer.append (functionName); buffer.append (" == undefined) {window.external.callJava("); // $NON-NLS-1$ buffer.append (index); - buffer.append (','); + buffer.append (",'"); //$NON-NLS-1$ buffer.append (function.token); - buffer.append (", ['"); // $NON-NLS-1$ + buffer.append ("', ['"); // $NON-NLS-1$ buffer.append (ERROR_ID); buffer.append ("']);} else {try {var result = "); // $NON-NLS-1$ buffer.append (functionName); buffer.append ("(); window.external.callJava("); // $NON-NLS-1$ buffer.append (index); - buffer.append (','); + buffer.append (",'"); //$NON-NLS-1$ buffer.append (function.token); - buffer.append (", [result]);} catch (e) {window.external.callJava("); // $NON-NLS-1$ + buffer.append ("', [result]);} catch (e) {window.external.callJava("); // $NON-NLS-1$ buffer.append (index); - buffer.append (','); + buffer.append (",'"); //$NON-NLS-1$ buffer.append (function.token); - buffer.append (", ['"); // $NON-NLS-1$ + buffer.append ("', ['"); // $NON-NLS-1$ buffer.append (ERROR_ID); buffer.append ("' + e.message]);}}"); // $NON-NLS-1$ execute (buffer.toString ()); |