Wrapper around addDomListener that removes the listener after the first event.
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().
Like addListener, but the handler removes itself after handling the first event.
Removes all listeners for all events for the given instance.
Removes all listeners for the given event for the given instance.
Returns if there are listeners for the given event on the given instance. Can be used to to save the computation of expensive event details.
Removes the given listener, which should have been returned by addListener
above. Equivalent to calling listener.remove()
.
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.
Generated using TypeDoc
Cross browser event handler registration. This listener is removed by calling removeListener(handle) for the handle that is returned by this function.
google.maps.event.addDomListener()
is deprecated, use the standard addEventListener() method instead. The feature will continue to work and there is no plan to decommission it.