A simple FIFO queue. Items are added to the Queue with add(1..n items) and removed using next().
Queue
item
Defined in
yui/js/queue-base.js:9
item
MIXED
multiple
0..n items to seed the queue.
add
item
Defined in
yui/js/queue-base.js:60
Add 0..n items to the end of the queue.
item
MIXED
multiple
0..n items.
this queue.
indexOf
needle
Provided by the queue-promote module.
Defined in
queue-promote/js/queue-promote.js:9
Returns the current index in the queue of the specified item
needle
MIXED
the item to search for
the index of the item or -1 if not found
last
Defined in
yui/js/queue-base.js:50
Get the last in the queue. LIFO support.
the last item in the queue.
next
Defined in
yui/js/queue-base.js:40
Get the next item in the queue. FIFO support
the next item in the queue.
promote
item
Provided by the queue-promote module.
Defined in
queue-promote/js/queue-promote.js:20
Moves the referenced item to the head of the queue
item
MIXED
an item in the queue
remove
item
Provided by the queue-promote module.
Defined in
queue-promote/js/queue-promote.js:34
Removes the referenced item from the queue
item
MIXED
an item in the queue
size
Defined in
yui/js/queue-base.js:73
Returns the current number of queued items.
The size.