This commit is contained in:
James Campos 2011-07-11 08:31:41 -07:00
parent 7912b15f18
commit e374e4515e
2 changed files with 8 additions and 4 deletions

View File

@ -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;

View File

@ -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