cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [1/2] js commit: replacing init with init_b
Date Thu, 06 Mar 2014 00:21:53 GMT
Repository: cordova-js
Updated Branches:
  refs/heads/browserify f6931d64b -> ef6f9b9fe


replacing init with init_b


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

Branch: refs/heads/browserify
Commit: 7d368f42204b1c55caba2ed8c79156fed6688530
Parents: f6931d6
Author: Anis Kadri <anis@apache.org>
Authored: Wed Mar 5 16:20:22 2014 -0800
Committer: Anis Kadri <anis@apache.org>
Committed: Wed Mar 5 16:20:22 2014 -0800

----------------------------------------------------------------------
 tasks/lib/require-tr.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/7d368f42/tasks/lib/require-tr.js
----------------------------------------------------------------------
diff --git a/tasks/lib/require-tr.js b/tasks/lib/require-tr.js
index 2c347a3..7bde0f6 100644
--- a/tasks/lib/require-tr.js
+++ b/tasks/lib/require-tr.js
@@ -85,6 +85,10 @@ function _updateRequires(code) {
           if(module === "cordova") {
             node.args[0].value = path.join(root, "src", "cordova_b");
           // android and amazon-fireos have some special require's
+          }  else if(module.match(/cordova\/init/)) {
+            node.args[0].value = module.replace(/cordova\/init/,
+                                    path.join(root, "src", "common", "init_b"));
+          // require('cordova/exec') and require('cordova/platform') -> platform's exec/platform
           } else if(module.match(/cordova\/(android|amazon-fireos)\/(.+)/)) {
             node.args[0].value = module.replace(/cordova\/(android|amazon-fireos)\/(.+)/,
                                     path.join(root, "src", "$1", "android", "$2"));


Mime
View raw message