Skip to content

Remove jQuery and make touch/mouse events opt-in

Choose a tag to compare

@briarsweetbriar briarsweetbriar released this 16 Jan 15:41
· 727 commits to master since this release

This release has two potential breaking changes:

  1. jQuery's been removed! This means that responders will now receive vanilla events, instead of jQuery events. For instance, using jQuery's isImmediatePropagationStopped will no longer work:
responder: Ember.on(keyDown('KeyA'), function(event) {
  event.isImmediatePropagationStopped();
})
  1. Mouse/touch events are now opt-in. You'll have to specify them in your config/environment.js file:
emberKeyboard: {
  listeners: ['keyUp', 'keyDown', 'keyPress', 'click', 'mouseDown', 'mouseUp', 'touchStart', 'touchEnd']
}