forked from 0x2620/oxjs
refactoring
This commit is contained in:
parent
ab68c4a54f
commit
9ee0742b53
6 changed files with 15 additions and 13 deletions
|
|
@ -36,6 +36,7 @@ Ox.SyntaxHighlighter = function(options, self) {
|
|||
tabSize: 4
|
||||
})
|
||||
.options(options || {})
|
||||
.update(renderSource)
|
||||
.addClass('OxSyntaxHighlighter');
|
||||
|
||||
renderSource();
|
||||
|
|
@ -132,10 +133,6 @@ Ox.SyntaxHighlighter = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
self.setOption = function(key, value) {
|
||||
renderSource();
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue