You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2013/05/18 01:47:19 UTC

[02/12] git commit: split hten join, not join then join

split hten join, not join then join


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

Branch: refs/heads/master
Commit: 79f4b767f13689e0cd22a6a60ced007811cfe184
Parents: b018cfb
Author: Fil Maj <ma...@gmail.com>
Authored: Fri May 17 16:14:08 2013 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Fri May 17 16:46:01 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/79f4b767/src/util/csproj.js
----------------------------------------------------------------------
diff --git a/src/util/csproj.js b/src/util/csproj.js
index 33ca3a7..12ed5db 100644
--- a/src/util/csproj.js
+++ b/src/util/csproj.js
@@ -13,7 +13,7 @@ csproj.prototype = {
         fs.writeFileSync(this.location, this.xml.write({indent:4}), 'utf-8');
     },
     addSourceFile:function(relative_path) {
-        relative_path = relative_path.join('/').join('\\');
+        relative_path = relative_path.split('/').join('\\');
         var item = new et.Element('ItemGroup');
         var compile = new et.Element('Compile');
         compile.attrib.Include = relative_path;
@@ -21,7 +21,7 @@ csproj.prototype = {
         this.xml.getroot().append(item);
     },
     removeSourceFile:function(relative_path) {
-        relative_path = relative_path.join('/').join('\\');
+        relative_path = relative_path.split('/').join('\\');
         var groups = this.xml.findall('ItemGroup');
         for (var i = 0, l = groups.length; i < l; i++) {
             var group = groups[i];