public function SlotList(head:ISlot, tail:SlotList = null)
Creates and returns a new SlotList object.
A user never has to create a SlotList manually.
Use the NIL element to represent an empty list.
NIL.prepend(value) would create a list containing value
Appends a slot to this list.
Note: appending is O(n). Where possible, prepend which is O(1).
In some cases, many list items must be cloned to
avoid changing existing lists.
Retrieves the ISlot associated with a supplied listener within the SlotList.
Parameters
listener:Function — The Function being searched for
Returns
ISlot — The ISlot in this list associated with the listener parameter through the ISlot.listener property.
Returns null if no such ISlot instance exists or the list is empty.
insertWithPriority
()
method
public function insertWithPriority(slot:ISlot):SlotList
Insert a slot into the list in a position according to its priority.
The higher the priority, the closer the item will be inserted to the list head.