remove duplicated loop
This commit is contained in:
parent
014af473f4
commit
b7be5b7a01
@ -67,9 +67,8 @@ ImageLoader =
|
|||||||
return unless [post, post.clones...].some (clone) -> doc.contains clone.nodes.root
|
return unless [post, post.clones...].some (clone) -> doc.contains clone.nodes.root
|
||||||
file.isPrefetched = true
|
file.isPrefetched = true
|
||||||
if file.videoThumb
|
if file.videoThumb
|
||||||
for clone in [post, post.clones...]
|
clone.file.thumb.preload = 'auto' for clone in post.clones
|
||||||
clone.file.thumb.preload = 'auto' for clone in post.clones
|
thumb.preload = 'auto'
|
||||||
thumb.preload = 'auto'
|
|
||||||
return
|
return
|
||||||
el = $.el if isImage then 'img' else 'video'
|
el = $.el if isImage then 'img' else 'video'
|
||||||
if replace and isImage
|
if replace and isImage
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user