length
Event fired when items are added or removed from the list.
handler(event, length)
Handlers registered on "length" events will be called back as follows.
list.on("length", function(event, length){ ... });
It's possible that the length was not changed, but an item was set on the list.
In this case, a length
event will still be fired.
Parameters
- event
{Event}
:An event object.
- length
{Number}
:The new length of the list.