guards
This commit is contained in:
parent
7912b15f18
commit
e374e4515e
@ -2478,7 +2478,9 @@
|
||||
init: function() {
|
||||
return g.callbacks.push(function(root) {
|
||||
var el, src, thumb;
|
||||
thumb = $('img[md5]', root);
|
||||
if (!(thumb = $('img[md5]', root))) {
|
||||
return;
|
||||
}
|
||||
src = thumb.parentNode.href;
|
||||
return el = $.el('img', {
|
||||
src: src
|
||||
@ -2490,7 +2492,9 @@
|
||||
init: function() {
|
||||
return g.callbacks.push(function(root) {
|
||||
var src, thumb;
|
||||
thumb = $('img[md5]', root);
|
||||
if (!(thumb = $('img[md5]', root))) {
|
||||
return;
|
||||
}
|
||||
src = thumb.parentNode.href;
|
||||
if (/gif$/.test(src)) {
|
||||
return thumb.src = src;
|
||||
|
||||
@ -1874,14 +1874,14 @@ imageHover =
|
||||
imgPreloading =
|
||||
init: ->
|
||||
g.callbacks.push (root) ->
|
||||
thumb = $ 'img[md5]', root
|
||||
return unless thumb = $ 'img[md5]', root
|
||||
src = thumb.parentNode.href
|
||||
el = $.el 'img', { src }
|
||||
|
||||
imgGif =
|
||||
init: ->
|
||||
g.callbacks.push (root) ->
|
||||
thumb = $ 'img[md5]', root
|
||||
return unless thumb = $ 'img[md5]', root
|
||||
src = thumb.parentNode.href
|
||||
if /gif$/.test src
|
||||
thumb.src = src
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user