aboutsummaryrefslogtreecommitdiff
path: root/js/lib/NJUtils.js
diff options
context:
space:
mode:
authorAnanya Sen2012-02-01 11:59:11 -0800
committerAnanya Sen2012-02-01 11:59:11 -0800
commit553fce7721cacfd13b6013fdcdd0243c90083b5e (patch)
treed0ef0c7fdf19053e2d78a3700e7234955eccb30c /js/lib/NJUtils.js
parent61ff730a1897890f71403cbfac4d15269e2d271f (diff)
downloadninja-553fce7721cacfd13b6013fdcdd0243c90083b5e.tar.gz
fixed reference to coreioapi
cleaning up opening code view tabs Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/lib/NJUtils.js')
-rwxr-xr-xjs/lib/NJUtils.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/lib/NJUtils.js b/js/lib/NJUtils.js
index d6548871..56c74b3b 100755
--- a/js/lib/NJUtils.js
+++ b/js/lib/NJUtils.js
@@ -206,6 +206,8 @@ exports.NJUtils = Object.create(Object.prototype, {
206 ///// Return the last part of a path (e.g. filename) 206 ///// Return the last part of a path (e.g. filename)
207 getFileNameFromPath : { 207 getFileNameFromPath : {
208 value: function(path) { 208 value: function(path) {
209 path = path.replace(/[/\\]$/g,"");
210 path = path.replace(/\\/g,"/");
209 return path.substr(path.lastIndexOf('/') + 1); 211 return path.substr(path.lastIndexOf('/') + 1);
210 } 212 }
211 } 213 }