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