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: move require into function scope
Date Wed, 30 Oct 2013 08:36:51 GMT
Updated Branches:
  refs/heads/2.9.x f911603c6 -> 138e92722


move require into function scope


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

Branch: refs/heads/2.9.x
Commit: 630a4f488841e15ad97c13cfb09af7755f6983ca
Parents: f911603
Author: purplecabbage <purplecabbage@gmail.com>
Authored: Tue Oct 29 01:07:54 2013 -0700
Committer: purplecabbage <purplecabbage@gmail.com>
Committed: Tue Oct 29 01:07:54 2013 -0700

----------------------------------------------------------------------
 lib/windowsphone/platform.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/630a4f48/lib/windowsphone/platform.js
----------------------------------------------------------------------
diff --git a/lib/windowsphone/platform.js b/lib/windowsphone/platform.js
index 851ef09..fa8dadf 100644
--- a/lib/windowsphone/platform.js
+++ b/lib/windowsphone/platform.js
@@ -19,12 +19,14 @@
  *
 */
 
-var cordova = require('cordova'),
-      exec = require('cordova/exec');
+
 
 module.exports = {
     id: "windowsphone",
     initialize:function() {
+        var cordova = require('cordova'),
+            exec = require('cordova/exec');
+
         var modulemapper = require('cordova/modulemapper');
 
         modulemapper.loadMatchingModules(/cordova.*\/plugininit$/);


Mime
View raw message