cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [01/10] git commit: Add leading slash to js-modules within cordova_plugins.json
Date Fri, 17 May 2013 02:25:33 GMT
Updated Branches:
  refs/heads/master b562e691c -> 09e844ec2


Add leading slash to js-modules within cordova_plugins.json

This fixes loading of modules from HTML files not in project root.


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

Branch: refs/heads/master
Commit: 38b16cf9644c12740e8d4d4d21fc49b4a8e00502
Parents: 759bce2
Author: Hasan Ahmad <haahmad@blackberry.com>
Authored: Thu Apr 25 14:56:22 2013 -0400
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Thu May 16 11:44:36 2013 -0700

----------------------------------------------------------------------
 src/prepare.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/38b16cf9/src/prepare.js
----------------------------------------------------------------------
diff --git a/src/prepare.js b/src/prepare.js
index 7f3df91..0a26980 100644
--- a/src/prepare.js
+++ b/src/prepare.js
@@ -92,7 +92,7 @@ module.exports = function handlePrepare(project_dir, platform, plugins_dir)
{
     
                 // Prepare the object for cordova_plugins.json.
                 var obj = {
-                    file: path.join('plugins', plugin_id, module.attrib.src),
+                    file: path.join('/plugins', plugin_id, module.attrib.src),
                     id: moduleName
                 };
     


Mime
View raw message