cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/2] js commit: WP7+8 if alert + confirm are not available, send them to our implementation
Date Wed, 09 Jan 2013 20:27:40 GMT
WP7+8 if alert + confirm are not available, send them to our implementation


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

Branch: refs/heads/master
Commit: bf373e73f2fdd6b30664d201c8e3092e376386a3
Parents: 05f19ce
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Jan 9 12:26:24 2013 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Jan 9 12:26:24 2013 -0800

----------------------------------------------------------------------
 lib/windowsphone/platform.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/bf373e73/lib/windowsphone/platform.js
----------------------------------------------------------------------
diff --git a/lib/windowsphone/platform.js b/lib/windowsphone/platform.js
index 4658ae7..6dbb658 100644
--- a/lib/windowsphone/platform.js
+++ b/lib/windowsphone/platform.js
@@ -34,7 +34,8 @@ require("cordova/plugin/windowsphone/XHRPatch");
 module.exports = {
     id: "windowsphone",
     initialize:function() {
-        window.alert = require("cordova/plugin/notification").alert;
+        window.alert = window.alert || require("cordova/plugin/notification").alert;
+        window.confirm = window.confirm || require("cordova/plugin/notification").confirm;
         window.FileReader = require("cordova/plugin/FileReader");
         window.File = require("cordova/plugin/File");
 


Mime
View raw message