cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject js commit: CB-8158 fixed symbolList require
Date Tue, 13 Jan 2015 22:16:34 GMT
Repository: cordova-js
Updated Branches:
  refs/heads/master a89ed46b8 -> bd419d86c


CB-8158 fixed symbolList require


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

Branch: refs/heads/master
Commit: bd419d86c96c3b0a032f59e172e5b75fcc8a0e4e
Parents: a89ed46
Author: Steve Gill <stevengill97@gmail.com>
Authored: Tue Jan 13 14:16:07 2015 -0800
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Tue Jan 13 14:16:15 2015 -0800

----------------------------------------------------------------------
 src/cordova_b.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/bd419d86/src/cordova_b.js
----------------------------------------------------------------------
diff --git a/src/cordova_b.js b/src/cordova_b.js
index 0b85f4a..71d546b 100644
--- a/src/cordova_b.js
+++ b/src/cordova_b.js
@@ -95,13 +95,15 @@ var cordova = {
     platformVersion:PLATFORM_VERSION_BUILD_LABEL,
     version:PLATFORM_VERSION_BUILD_LABEL,
     require: function(module) {
+        console.log(module);
         if(symbolList) {
           for(var i = 0 ; i < symbolList.length ; i++) {
-            if(module === symbolList[module].symbolList) {
-              return require(symbolList[module].path);
+            if(module === symbolList[i].symbol) {
+              return require(symbolList[i].path);
             }
           }
         } else {
+          console.log("else");
           return require(module);
         }
     },


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


Mime
View raw message