Skip to content

Commit

Permalink
fix IE8 error FS#2381
Browse files Browse the repository at this point in the history
A trailing comma created an empty array item causing IE8 to choke.
  • Loading branch information
splitbrain committed Nov 27, 2011
1 parent 9df43a6 commit 8d73905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/scripts/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ var dw_editor = {
jQuery.each([
['larger', function(){dw_editor.sizeCtl(editor,100);}],
['smaller', function(){dw_editor.sizeCtl(editor,-100);}],
['wrap', function(){dw_editor.toggleWrap(editor);}],
['wrap', function(){dw_editor.toggleWrap(editor);}]
], function (_, img) {
jQuery(document.createElement('img'))
jQuery(document.createElement('IMG'))
.attr('src', DOKU_BASE+'lib/images/' + img[0] + '.gif')
.click(img[1])
.appendTo($ctl);
Expand Down

0 comments on commit 8d73905

Please sign in to comment.