1
0
Fork 0
forked from 0x2620/oxjs

use [].slice, not Ox.sub

This commit is contained in:
rolux 2012-05-24 11:02:59 +02:00
commit f990f3b857
7 changed files with 10 additions and 10 deletions

View file

@ -46,7 +46,7 @@ Ox.SourceViewer = function(options, self) {
if (!/^\/\//.test(text)) {
if (type == 'comment') {
i && sections.push({comment: '', code: ''});
text = Ox.sub(text, 2, -2);
text = text.slice(2, -2);
self.options.replaceComment.forEach(function(replace) {
text = text.replace(replace[0], replace[1]);
});