Don't try to reload an image hover if it's not in the document.

This commit is contained in:
Nicolas Stepien 2012-09-11 15:13:48 +02:00
parent 971869ac03
commit 54f4ec2038
2 changed files with 4 additions and 0 deletions

View File

@ -2297,6 +2297,9 @@
error: function() {
var src, timeoutID, url,
_this = this;
if (!this.parentNode) {
return;
}
src = this.src.split('/');
if (!(src[2] === 'images.4chan.org' && (url = Redirect.image(src[3], src[5])))) {
if (g.DEAD) {

View File

@ -1935,6 +1935,7 @@ ImageHover =
clientX: - 45 + parseInt style.left
clientY: 120 + parseInt style.top
error: ->
return unless @parentNode
src = @src.split '/'
unless src[2] is 'images.4chan.org' and url = Redirect.image src[3], src[5]
return if g.DEAD