incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject wp7 commit: update template for 1.7.0
Date Tue, 01 May 2012 22:18:05 GMT
Updated Branches:
  refs/heads/master e92305939 -> 35f0f0463
Updated Tags:  refs/tags/1.7.0 [created] 35f0f0463


update template for 1.7.0


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/35f0f046
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/35f0f046
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/35f0f046

Branch: refs/heads/master
Commit: 35f0f046324c57fb5ec4a87feac9bec176fbe231
Parents: e923059
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue May 1 15:15:46 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue May 1 15:15:46 2012 -0700

----------------------------------------------------------------------
 CordovaStarter-1.7.0.zip            |  Bin 204589 -> 204619 bytes
 cordova-1.7.0.js                    |   30 ++++++++++++++++++++----------
 templates/full/www/cordova-1.7.0.js |   30 ++++++++++++++++++++----------
 templates/full/www/index.html       |    3 ---
 4 files changed, 40 insertions(+), 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/35f0f046/CordovaStarter-1.7.0.zip
----------------------------------------------------------------------
diff --git a/CordovaStarter-1.7.0.zip b/CordovaStarter-1.7.0.zip
index 7884894..4ebc171 100644
Binary files a/CordovaStarter-1.7.0.zip and b/CordovaStarter-1.7.0.zip differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/35f0f046/cordova-1.7.0.js
----------------------------------------------------------------------
diff --git a/cordova-1.7.0.js b/cordova-1.7.0.js
index cb955b2..892ae76 100644
--- a/cordova-1.7.0.js
+++ b/cordova-1.7.0.js
@@ -1,10 +1,6 @@
-// commit 1c9ac3578a369dcb35b168c3e2d7ce2e89d45d12
-
-
-// File generated at :: Tue May 01 2012 13:46:18 GMT-0700 (Pacific Daylight Time)
-
-// WP7
+// commit 9cfdc134f83b5d51f655e52ec7d4ddab167437c7 WP7
 
+// File generated at :: Tue May 01 2012 14:51:58 GMT-0700 (Pacific Daylight Time)
 
 /*
  Licensed to the Apache Software Foundation (ASF) under one
@@ -353,10 +349,10 @@ function deprecateFunctions(obj, objLabel) {
  * TODO: remove in 2.0.
  */
 if (!window.PhoneGap) {
-    window.PhoneGap = cordova;
+    window.PhoneGap = deprecateFunctions(cordova, 'PhoneGap');
 }
 if (!window.Cordova) {
-    window.Cordova = cordova;
+    window.Cordova = deprecateFunctions(cordova, 'Cordova');
 }
 
 /**
@@ -725,6 +721,20 @@ module.exports = {
                 }
             }
         },
+        Cordova: {
+            children: {
+                exec: {
+                    path: 'cordova/exec'
+                }
+            }
+        },
+        PhoneGap:{
+            children: {
+                exec: {
+                    path: 'cordova/exec'
+                }
+            }
+        },
         navigator: {
             children: {
                 notification: {
@@ -895,6 +905,7 @@ module.exports = {
         }
     }
 };
+
 });
 
 // file: lib\wp7\exec.js
@@ -1031,8 +1042,7 @@ module.exports = {
     id: "wp7",
     initialize:function() {
 
-
-
+	window.alert = require("cordova/plugin/notification").alert;
 
     // INject a lsitener for the backbutton, and tell native to override the flag (true/false)
when we have 1 or more, or 0, listeners
     var backButtonChannel = cordova.addDocumentEventHandler('backbutton', {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/35f0f046/templates/full/www/cordova-1.7.0.js
----------------------------------------------------------------------
diff --git a/templates/full/www/cordova-1.7.0.js b/templates/full/www/cordova-1.7.0.js
index cb955b2..892ae76 100644
--- a/templates/full/www/cordova-1.7.0.js
+++ b/templates/full/www/cordova-1.7.0.js
@@ -1,10 +1,6 @@
-// commit 1c9ac3578a369dcb35b168c3e2d7ce2e89d45d12
-
-
-// File generated at :: Tue May 01 2012 13:46:18 GMT-0700 (Pacific Daylight Time)
-
-// WP7
+// commit 9cfdc134f83b5d51f655e52ec7d4ddab167437c7 WP7
 
+// File generated at :: Tue May 01 2012 14:51:58 GMT-0700 (Pacific Daylight Time)
 
 /*
  Licensed to the Apache Software Foundation (ASF) under one
@@ -353,10 +349,10 @@ function deprecateFunctions(obj, objLabel) {
  * TODO: remove in 2.0.
  */
 if (!window.PhoneGap) {
-    window.PhoneGap = cordova;
+    window.PhoneGap = deprecateFunctions(cordova, 'PhoneGap');
 }
 if (!window.Cordova) {
-    window.Cordova = cordova;
+    window.Cordova = deprecateFunctions(cordova, 'Cordova');
 }
 
 /**
@@ -725,6 +721,20 @@ module.exports = {
                 }
             }
         },
+        Cordova: {
+            children: {
+                exec: {
+                    path: 'cordova/exec'
+                }
+            }
+        },
+        PhoneGap:{
+            children: {
+                exec: {
+                    path: 'cordova/exec'
+                }
+            }
+        },
         navigator: {
             children: {
                 notification: {
@@ -895,6 +905,7 @@ module.exports = {
         }
     }
 };
+
 });
 
 // file: lib\wp7\exec.js
@@ -1031,8 +1042,7 @@ module.exports = {
     id: "wp7",
     initialize:function() {
 
-
-
+	window.alert = require("cordova/plugin/notification").alert;
 
     // INject a lsitener for the backbutton, and tell native to override the flag (true/false)
when we have 1 or more, or 0, listeners
     var backButtonChannel = cordova.addDocumentEventHandler('backbutton', {

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/35f0f046/templates/full/www/index.html
----------------------------------------------------------------------
diff --git a/templates/full/www/index.html b/templates/full/www/index.html
index 5106a0f..7025888 100644
--- a/templates/full/www/index.html
+++ b/templates/full/www/index.html
@@ -19,9 +19,6 @@
         // once the device ready event fires, you can safely do your thing! -jm
         function onDeviceReady()
         {
-            // IE does NOT provide an alert method, you can patch it with this line after
deviceready.
-            window.alert = window.alert || navigator.notification.alert;
-
             document.getElementById("welcomeMsg").innerHTML += "Cordova is ready! version="
+ window.device.cordova;
             console.log("onDeviceReady. You should see this message in Visual Studio's output
window.");
 


Mime
View raw message