fix error
This commit is contained in:
parent
5c28ed45f2
commit
7ce54a0f99
@ -69,9 +69,10 @@ ImageLoader =
|
|||||||
|
|
||||||
next: ->
|
next: ->
|
||||||
return if ImageLoader.busy
|
return if ImageLoader.busy
|
||||||
if [el, URL] = ImageLoader.queue.shift()
|
if item = ImageLoader.queue.shift()
|
||||||
|
[el, url] = item
|
||||||
$.on el, 'load loadeddata error', ImageLoader.loadend
|
$.on el, 'load loadeddata error', ImageLoader.loadend
|
||||||
el.src = URL
|
el.src = url
|
||||||
ImageLoader.busy = true
|
ImageLoader.busy = true
|
||||||
|
|
||||||
replace: (post, el) ->
|
replace: (post, el) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user