cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/2] git commit: wp8.1 and the IE11 WebBrowser control do not support execScript, moving to 'eval'
Date Fri, 23 May 2014 06:35:25 GMT
wp8.1 and the IE11 WebBrowser control do not support execScript, moving to 'eval'


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/18ec1c3a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/18ec1c3a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/18ec1c3a

Branch: refs/heads/master
Commit: 18ec1c3af674007e48bf34dcdf3fc7ee0be8ba10
Parents: 14d1371
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Thu May 22 23:34:48 2014 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Thu May 22 23:34:48 2014 -0700

----------------------------------------------------------------------
 wp8/template/cordovalib/ConsoleHelper.cs     | 2 +-
 wp8/template/cordovalib/CordovaView.xaml.cs  | 4 ++--
 wp8/template/cordovalib/OrientationHelper.cs | 6 +++---
 wp8/template/cordovalib/XHRHelper.cs         | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/18ec1c3a/wp8/template/cordovalib/ConsoleHelper.cs
----------------------------------------------------------------------
diff --git a/wp8/template/cordovalib/ConsoleHelper.cs b/wp8/template/cordovalib/ConsoleHelper.cs
index 92cf0c9..6bb52cc 100644
--- a/wp8/template/cordovalib/ConsoleHelper.cs
+++ b/wp8/template/cordovalib/ConsoleHelper.cs
@@ -42,7 +42,7 @@ namespace WPCordovaClassLib.CordovaLib
         cons.error = cons.error || function(msg) { exec('ERROR:' + msg ); };
     })(window);";
 
-            Browser.InvokeScript("execScript", new string[] { script });
+            Browser.InvokeScript("eval", new string[] { script });
         }
 
         void OnServiceClosing(object sender, ClosingEventArgs e)

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/18ec1c3a/wp8/template/cordovalib/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/wp8/template/cordovalib/CordovaView.xaml.cs b/wp8/template/cordovalib/CordovaView.xaml.cs
index 74de7d2..d190c29 100644
--- a/wp8/template/cordovalib/CordovaView.xaml.cs
+++ b/wp8/template/cordovalib/CordovaView.xaml.cs
@@ -387,7 +387,7 @@ namespace WPCordovaClassLib
             string nativeReady = "(function(){ cordova.require('cordova/channel').onNativeReady.fire()})();";
             try
             {
-                CordovaBrowser.InvokeScript("execScript", new string[] { nativeReady });
+                CordovaBrowser.InvokeScript("eval", new string[] { nativeReady });
             }
             catch (Exception /*ex*/)
             {
@@ -397,7 +397,7 @@ namespace WPCordovaClassLib
             string appExitHandler = "(function(){navigator.app = navigator.app || {}; navigator.app.exitApp=
function(){cordova.exec(null,null,'CoreEvents','__exitApp',[]); }})();";
             try
             {
-                CordovaBrowser.InvokeScript("execScript", new string[] { appExitHandler });
+                CordovaBrowser.InvokeScript("eval", new string[] { appExitHandler });
             }
             catch (Exception /*ex*/)
             {

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/18ec1c3a/wp8/template/cordovalib/OrientationHelper.cs
----------------------------------------------------------------------
diff --git a/wp8/template/cordovalib/OrientationHelper.cs b/wp8/template/cordovalib/OrientationHelper.cs
index 5a298b2..299f9dd 100644
--- a/wp8/template/cordovalib/OrientationHelper.cs
+++ b/wp8/template/cordovalib/OrientationHelper.cs
@@ -72,7 +72,7 @@ namespace WPCordovaClassLib.Cordova
 
             try
             {
-                Browser.InvokeScript("execScript", new string[] { jsCallback });
+                Browser.InvokeScript("eval", new string[] { jsCallback });
             }
             catch (Exception)
             {
@@ -106,14 +106,14 @@ namespace WPCordovaClassLib.Cordova
             try
             {
 
-                Browser.InvokeScript("execScript", new string[] { jsCallback });
+                Browser.InvokeScript("eval", new string[] { jsCallback });
 
                 jsCallback = "var evt = document.createEvent('HTMLEvents');";
                 jsCallback += "evt.initEvent( 'orientationchange', true, false );";
                 jsCallback += "window.dispatchEvent(evt);";
                 jsCallback += "if(window.onorientationchange){window.onorientationchange(evt);}";
 
-                Browser.InvokeScript("execScript", new string[] {jsCallback});
+                Browser.InvokeScript("eval", new string[] {jsCallback});
             }
             catch (Exception)
             {

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/18ec1c3a/wp8/template/cordovalib/XHRHelper.cs
----------------------------------------------------------------------
diff --git a/wp8/template/cordovalib/XHRHelper.cs b/wp8/template/cordovalib/XHRHelper.cs
index e2d4593..d1651c3 100644
--- a/wp8/template/cordovalib/XHRHelper.cs
+++ b/wp8/template/cordovalib/XHRHelper.cs
@@ -255,7 +255,7 @@ namespace WPCordovaClassLib.CordovaLib
 })(window, document); ";
 
 
-            Browser.InvokeScript("execScript", new string[] { script });
+            Browser.InvokeScript("eval", new string[] { script });
         }
 
         public bool HandleCommand(string commandStr)


Mime
View raw message