Don't error if the image has loaded when it's not hovering anymore.
This commit is contained in:
parent
b01dfd42dd
commit
07f6a586a5
@ -3313,6 +3313,7 @@
|
||||
},
|
||||
load: function() {
|
||||
var style;
|
||||
if (this !== ui.el) return;
|
||||
style = this.style;
|
||||
return ui.hover({
|
||||
clientX: -45 + parseInt(style.left),
|
||||
|
||||
@ -2608,6 +2608,7 @@ imgHover =
|
||||
$.on @, 'mousemove', ui.hover
|
||||
$.on @, 'mouseout', imgHover.mouseout
|
||||
load: ->
|
||||
return if @ isnt ui.el
|
||||
# 'Fake' mousemove event by giving required values.
|
||||
{style} = @
|
||||
ui.hover
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user