cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject git commit: [CB-3621] backbutton events can now throw an exception to let the native side know that it should exit the app (WP7)
Date Sun, 06 Oct 2013 17:34:32 GMT
Updated Branches:
  refs/heads/master be911f456 -> 7c88c66ad


[CB-3621] backbutton events can now throw an exception to let the native side know that it
should exit the app (WP7)


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

Branch: refs/heads/master
Commit: 7c88c66adc62ca93a3aa87c29631ff6aa9cd9687
Parents: be911f4
Author: Viras- <viras@users.sourceforge.net>
Authored: Sun Oct 6 19:33:00 2013 +0200
Committer: Viras- <viras@users.sourceforge.net>
Committed: Sun Oct 6 19:33:00 2013 +0200

----------------------------------------------------------------------
 wp7/template/cordovalib/CordovaView.xaml.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/7c88c66a/wp7/template/cordovalib/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/wp7/template/cordovalib/CordovaView.xaml.cs b/wp7/template/cordovalib/CordovaView.xaml.cs
index f89a029..76e752b 100644
--- a/wp7/template/cordovalib/CordovaView.xaml.cs
+++ b/wp7/template/cordovalib/CordovaView.xaml.cs
@@ -364,7 +364,7 @@ namespace WPCordovaClassLib
             {
                 try
                 {
-                    CordovaBrowser.InvokeScript("eval", new string[] { "cordova.fireDocumentEvent('backbutton');"
});
+                    CordovaBrowser.InvokeScript("eval", new string[] { "cordova.fireDocumentEvent('backbutton',
{}, true);" });
                     e.Cancel = true;
                 }
                 catch (Exception ex)


Mime
View raw message