#4127 closed bug (wontfix)
1st function in queue won't run unless type is "fx"
Reported by: | MoonScript | Owned by: | flesler |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.2 |
Component: | data | Version: | 1.3.1 |
Keywords: | queue | Cc: | |
Blocked by: | Blocking: |
Description
Bug in v1.3: The 1st function in the queue will not get called if the type is not "fx". So any queues under a different namespace will not kick off the function!
Code in v1.2.6: if ( queue(this, type).length == 1 )
fn.call(this);
Code in v1.3: if( type == "fx" && queue.length == 1 )
queue[0].call(this);
Change History (4)
comment:1 Changed 14 years ago by
Component: | data → fx |
---|---|
Owner: | set to flesler |
comment:2 Changed 14 years ago by
Component: | fx → data |
---|
comment:3 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Version: | 1.3 → 1.3.1 |
comment:4 Changed 14 years ago by
john, can you please elaborate on that? I am using the "queue" feature to handle an AJAX queue. So a user could click a bunch of things as fast as they can, and I will queue those actions up and process them in order. I understand that you originally intended the queue for animations, but when I first found this queue function, I saw it as a generic job-handler, where I could queue up a bunch of functions, and run them in order. Why not leave it generic, for the use that I am describing (such as for AJAX)?
That's correct - and an intended change. Since the execution of the function was really only something that was ever needed for 'fx' we made it exclusive to that.