aboutsummaryrefslogtreecommitdiff
path: root/src/library_path.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-28 14:30:12 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-28 14:30:12 -0700
commitb6342e4cedcdb4fcd8cb61b1879c0aa839e03f52 (patch)
treec2ff7f609f2d71456b7401871cdee53ffdf35956 /src/library_path.js
parent03ad4ea44efa450c46405df7b048859841681782 (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.js3
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;