diff options
author | Ananya Sen | 2012-02-01 11:59:11 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-01 11:59:11 -0800 |
commit | 553fce7721cacfd13b6013fdcdd0243c90083b5e (patch) | |
tree | d0ef0c7fdf19053e2d78a3700e7234955eccb30c /js/lib | |
parent | 61ff730a1897890f71403cbfac4d15269e2d271f (diff) | |
download | ninja-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')
-rwxr-xr-x | js/lib/NJUtils.js | 2 |
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 | } |