forked from 0x2620/oxjs
some redesign for better garbage collection of elements
This commit is contained in:
parent
01f02d9730
commit
1d09d19423
17 changed files with 129 additions and 101 deletions
|
|
@ -111,7 +111,7 @@ Ox.SyntaxHighlighter = function(options, self) {
|
|||
.html(Ox.repeat(' ', self.options.lineLength))
|
||||
.appendTo(that);
|
||||
width = $line.width() + 4; // add padding
|
||||
$line.removeElement();
|
||||
$line.remove();
|
||||
['moz', 'webkit'].forEach(function(browser) {
|
||||
$source.css({
|
||||
background: '-' + browser +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue