remove contracted images as we do videos

This commit is contained in:
ccd0 2014-09-17 10:14:28 -07:00
parent 72e76501d0
commit 019ac7d5c3
2 changed files with 2 additions and 3 deletions

View File

@ -137,10 +137,9 @@ ImageExpand =
$.off el, 'error', ImageExpand.error $.off el, 'error', ImageExpand.error
if file.isVideo if file.isVideo
el.pause() el.pause()
TrashQueue.add el, post
for eventName, cb of ImageExpand.videoCB for eventName, cb of ImageExpand.videoCB
$.off el, eventName, cb $.off el, eventName, cb
return TrashQueue.add el, post
expand: (post, src) -> expand: (post, src) ->
# Do not expand images of hidden/filtered replies, or already expanded pictures. # Do not expand images of hidden/filtered replies, or already expanded pictures.

View File

@ -41,7 +41,7 @@ ImageHover =
cb: -> cb: ->
if isVideo if isVideo
el.pause() el.pause()
TrashQueue.add el, post TrashQueue.add el, post
el.removeAttribute 'id' el.removeAttribute 'id'
$.queueTask -> delete file.isHovered $.queueTask -> delete file.isHovered
error: -> error: ->