EventDispatcher#events

eventsObjectprivate

Defined in packages/ember-views/lib/system/event_dispatcher.js:35

The set of events names (and associated handler function names) to be setup and dispatched by the EventDispatcher. Modifications to this list can be done at setup time, generally via the Ember.Application.customEvents hash.

To add new events to be listened to:

let App = Ember.Application.create({
  customEvents: {
    paste: 'paste'
  }
});

To prevent default events from being listened to:

let App = Ember.Application.create({
  customEvents: {
    mouseenter: null,
    mouseleave: null
  }
});
doc_EmberJs
2016-11-30 16:52:04
Comments
Leave a Comment

Please login to continue.