fix error

This commit is contained in:
ccd0 2014-09-07 02:19:49 -07:00
parent 5c28ed45f2
commit 7ce54a0f99

View File

@ -69,9 +69,10 @@ ImageLoader =
next: ->
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
el.src = URL
el.src = url
ImageLoader.busy = true
replace: (post, el) ->