FIX: Keyboard shortcuts broke in the composer

This commit is contained in:
Robin Ward 2015-04-17 14:01:45 -04:00
parent 952b345883
commit 2f7b241087

View file

@ -324,9 +324,9 @@
// event.
util.addEvent = function (elem, event, listener) {
var wrapped = function() {
var wrappedArgs = Array.prototype.slice(arguments);
var wrappedArgs = Array.prototype.slice.call(arguments);
Ember.run(function() {
listener.call(this, wrappedArgs);
listener.apply(this, wrappedArgs);
});
};
elem.addEventListener(event, wrapped, false);