Instance Properties
| Name | Description | Access |
|---|---|---|
| length | number The number of objects in the collection. | read-only |
Methods
| add( | eventType, handler [, captures] [, withProperties]) |
→ EventListener |
| anyItem( | ) |
→ EventListener |
| count( | ) |
→ number |
| everyItem( | ) |
→ EventListener |
| firstItem( | ) |
→ EventListener |
| item( | index) |
→ EventListener |
| itemByID( | id) |
→ EventListener |
| itemByName( | name) |
→ EventListener |
| itemByRange( | from, to) |
→ EventListener |
| lastItem( | ) |
→ EventListener |
| middleItem( | ) |
→ EventListener |
| nextItem( | obj) |
→ EventListener |
| previousItem( | obj) |
→ EventListener |
| toSource( | ) |
→ string |
-
add( eventType, handler [, captures=false] [, withProperties])→ EventListener -
Adds an event listener.
eventTypestring The event type. handlerThe event handler. Can accept: File or JavaScript Function. capturesbool This parameter is obsolete. (Optional) withPropertiesObject Initial values for properties of the new EventListener (Optional) -
anyItem( )→ EventListener -
Returns any EventListener in the collection.
-
count( )→ number -
Displays the number of elements in the EventListener.
-
everyItem( )→ EventListener -
Returns every EventListener in the collection.
-
firstItem( )→ EventListener -
Returns the first EventListener in the collection.
-
item( index)→ EventListener -
Returns the EventListener with the specified index or name.
indexThe index or name. Can accept: Long Integer or String. -
itemByID( id)→ EventListener -
Returns the EventListener with the specified ID.
idnumber The ID. -
itemByName( name)→ EventListener -
Returns the EventListener with the specified name.
namestring The name. -
itemByRange( from, to)→ EventListener -
Returns the EventListeners within the specified range.
fromThe EventListener, index, or name at the beginning of the range. Can accept: EventListener, Long Integer or String. toThe EventListener, index, or name at the end of the range. Can accept: EventListener, Long Integer or String. -
lastItem( )→ EventListener -
Returns the last EventListener in the collection.
-
middleItem( )→ EventListener -
Returns the middle EventListener in the collection.
-
nextItem( obj)→ EventListener -
Returns the EventListener whose index follows the specified EventListener in the collection.
objEventListener The EventListener whose index comes before the desired EventListener. -
previousItem( obj)→ EventListener -
Returns the EventListener with the index previous to the specified index.
objEventListener The index of the EventListener that follows the desired EventListener. -
toSource( )→ string -
Generates a string which, if executed, will return the EventListener.