fix whitespace issue, issue if WinJS already present

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

Branch: refs/heads/master
Commit: d163b1f77e126074236efc2a1858981ab316c82b
Parents: faea9fb
Author: Jesse MacFadyen <purplecabb...@gmail.com>
Authored: Mon Oct 29 15:28:52 2012 -0700
Committer: Jesse MacFadyen <purplecabb...@gmail.com>
Committed: Mon Oct 29 15:28:52 2012 -0700

----------------------------------------------------------------------
 lib/windows8/platform.js |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/d163b1f7/lib/windows8/platform.js
----------------------------------------------------------------------
diff --git a/lib/windows8/platform.js b/lib/windows8/platform.js
index b2a16f0..75f0a28 100755
--- a/lib/windows8/platform.js
+++ b/lib/windows8/platform.js
@@ -48,7 +48,7 @@ module.exports = {
             var checkpointHandler = function checkpointHandler() {
                 cordova.fireDocumentEvent('pause');
             };
-            
+
             var resumingHandler = function resumingHandler() {
                 cordova.fireDocumentEvent('resume');
             };
@@ -67,6 +67,9 @@ module.exports = {
 
             console.log("added WinJS ... ");
         }
+        else {
+            onWinJSReady();
+        }
     },
     objects: {
         cordova: {
@@ -80,7 +83,6 @@ module.exports = {
         navigator: {
             children: {
                 device: {
-
                     children: {
                         capture: {
                             path: "cordova/plugin/capture"
@@ -102,13 +104,6 @@ module.exports = {
     merges: {
         MediaFile: {
             path: "cordova/plugin/windows8/MediaFile"
-        },
-        navigator: {
-            children: {
-                geolocation: {
-                    path: 'cordova/plugin/windows8/geolocation'
-                }
-            }
         }
     }
 };

Reply via email to