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 <[email protected]> Authored: Fri May 17 16:14:08 2013 -0700 Committer: Fil Maj <[email protected]> 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];
