diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-28 14:30:12 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-28 14:30:12 -0700 |
commit | b6342e4cedcdb4fcd8cb61b1879c0aa839e03f52 (patch) | |
tree | c2ff7f609f2d71456b7401871cdee53ffdf35956 /src/library_path.js | |
parent | 03ad4ea44efa450c46405df7b048859841681782 (diff) |
add PATH.join2 as a fast way to join 2 path elements without the generic overhead of PATH.join
Diffstat (limited to 'src/library_path.js')
-rw-r--r-- | src/library_path.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library_path.js b/src/library_path.js index 15086e25..4c96a07f 100644 --- a/src/library_path.js +++ b/src/library_path.js @@ -75,6 +75,9 @@ mergeInto(LibraryManager.library, { var paths = Array.prototype.slice.call(arguments, 0); return PATH.normalize(paths.join('/')); }, + join2: function(l, r) { + return PATH.normalize(l + '/' + r); + }, resolve: function() { var resolvedPath = '', resolvedAbsolute = false; |