You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by vi...@apache.org on 2013/10/06 19:34:32 UTC

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

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- <vi...@users.sourceforge.net>
Authored: Sun Oct 6 19:33:00 2013 +0200
Committer: Viras- <vi...@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)