cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [15/26] js commit: CB-8158 removed extra symbolList declartion
Date Wed, 07 Jan 2015 01:27:14 GMT
CB-8158 removed extra symbolList declartion


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

Branch: refs/heads/3.7.x
Commit: ccac7383455fb968de7941e4fccba1fcb8db239a
Parents: 10ffabb
Author: Steve Gill <stevengill97@gmail.com>
Authored: Thu Dec 18 00:51:01 2014 -0800
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Thu Dec 18 00:51:01 2014 -0800

----------------------------------------------------------------------
 src/cordova_b.js                  | 10 +++++++---
 tasks/lib/require-tr.js           |  4 +++-
 tasks/lib/write-license-header.js |  2 +-
 3 files changed, 11 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/ccac7383/src/cordova_b.js
----------------------------------------------------------------------
diff --git a/src/cordova_b.js b/src/cordova_b.js
index 87c6852..498c07e 100644
--- a/src/cordova_b.js
+++ b/src/cordova_b.js
@@ -95,10 +95,14 @@ var cordova = {
     platformVersion:PLATFORM_VERSION_BUILD_LABEL,
     version:PLATFORM_VERSION_BUILD_LABEL,
     require: function(module) {
-        for(var i = 0 ; i < symbolList.length ; i++) {
-          if(module === symbolList[module].symbolList) {
-            return require(symbolList[module].path);
+        if(symbolList) {
+          for(var i = 0 ; i < symbolList.length ; i++) {
+            if(module === symbolList[module].symbolList) {
+              return require(symbolList[module].path);
+            }
           }
+        } else {
+          return require(module);
         }
     },
     platformId:platform.id,

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/ccac7383/tasks/lib/require-tr.js
----------------------------------------------------------------------
diff --git a/tasks/lib/require-tr.js b/tasks/lib/require-tr.js
index da874a5..a433b30 100644
--- a/tasks/lib/require-tr.js
+++ b/tasks/lib/require-tr.js
@@ -100,7 +100,9 @@ var requireTr = {
       throw new Error("Can't add module without a symbol and a path");
     }
     this.modules.push(module);
-  }
+  },
+  modules:[],
+  platform: null
 }
 
 /*

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/ccac7383/tasks/lib/write-license-header.js
----------------------------------------------------------------------
diff --git a/tasks/lib/write-license-header.js b/tasks/lib/write-license-header.js
index 9c5ffe2..e736011 100644
--- a/tasks/lib/write-license-header.js
+++ b/tasks/lib/write-license-header.js
@@ -34,6 +34,6 @@ module.exports = function(outStream, platform, commitId, platformVersion,
symbol
   outStream.write(licenseText, 'utf8');
   outStream.write("var PLATFORM_VERSION_BUILD_LABEL = '"  + platformVersion + "';\n", 'utf8');
   outStream.write("var define = {moduleMap: []};\n", 'utf8');
-  outStream.write(util.format("var symbolList = %s", JSON.stringify(symbolList)), 'utf8');
+  // outStream.write(util.format("var symbolList = %s", JSON.stringify(symbolList)), 'utf8');
 
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message