Refactor queueing system to allow auto-dequeuing to use dequeue directly and
authorYehuda Katz <wycats@gmail.com>
Thu, 16 Jul 2009 07:32:39 +0000 (07:32 +0000)
committerYehuda Katz <wycats@gmail.com>
Thu, 16 Jul 2009 07:32:39 +0000 (07:32 +0000)
commit991d039b62f5dfcb9e3d99fe28212a6874e8f5c7
tree92e8552c236a3b6fbbc75a0881c61aefdbf5e969
parent190812c3be99bde536d373b6b6ab65cfe053a532
Refactor queueing system to allow auto-dequeuing to use dequeue directly and
therefore require dequeue to always leave the element it has dequeued on
the queue.

  - In the fx queue, a progress sentinel is added when a queue element
    is dequeued.
  - The sentinel is ignored when dequeue is called explicitly
  - When adding a new element to the fx queue, queue() checks if
    the progress sentinel is present. If not, it calls dequeue()
src/data.js
test/unit/data.js