/Dart 2

getEventType method

String getEventType (EventTarget target)

Gets the type of the event which this would listen for on the specified event target.

The target is necessary because some browsers may use different event names for the same purpose and the target allows differentiating browser support.


String getEventType(EventTarget target) {
  return _eventType;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.