remove timeout from download queue
This commit is contained in:
parent
1f42a88b29
commit
95ed236f84
@ -52,15 +52,11 @@ ImageLoader =
|
||||
busy = false
|
||||
items = []
|
||||
load = (el, url) ->
|
||||
next = ->
|
||||
$.off el, 'load loadeddata error', next
|
||||
clearTimeout timeoutID
|
||||
$.one el, 'load loadedmetadata error', ->
|
||||
busy = false
|
||||
if item = items.shift()
|
||||
[el2, url2] = item
|
||||
load el2, url2
|
||||
$.on el, 'load loadeddata error', next
|
||||
timeoutID = setTimeout next, $.SECOND
|
||||
el.src = url
|
||||
busy = true
|
||||
(el, url) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user