forked from 0x2620/oxjs
fix issues with leading and trailing whitespace and linebreaks in Ox.doc
This commit is contained in:
parent
9bd5568579
commit
745aac2609
2 changed files with 27 additions and 10 deletions
|
|
@ -22,7 +22,7 @@ Ox.load('UI', {
|
|||
},
|
||||
getSection: function(item) {
|
||||
var file = item.file.replace(Ox.PATH, '');
|
||||
return item.section || file.split('/')[2];
|
||||
return item.section || file.split('/')[2].split('.')[0];
|
||||
},
|
||||
path: Ox.PATH
|
||||
}).bindEvent({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue