Return asap.

This commit is contained in:
Nicolas Stepien 2011-07-20 20:23:14 +02:00
parent 032374911c
commit eeeecc7d93
2 changed files with 2 additions and 2 deletions

View File

@ -1859,7 +1859,7 @@
init: function() {
return g.callbacks.push(function(root) {
var board, img, nb, _, _ref;
if (root.className === 'inline' || !(img = $('img[alt^=Spoiler]', root))) {
if (!(img = $('img[alt^=Spoiler]', root) || root.className === 'inline')) {
return;
}
img.removeAttribute('height');

View File

@ -1486,7 +1486,7 @@ sauce =
revealSpoilers =
init: ->
g.callbacks.push (root) ->
return if root.className is 'inline' or not img = $ 'img[alt^=Spoiler]', root
return if not img = $('img[alt^=Spoiler]', root) or root.className is 'inline'
img.removeAttribute 'height'
img.removeAttribute 'width'
[_, board, nb] = img.parentNode.href.match /(\w+)\/src\/(\d+)/