mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Keyboard shortcuts broke in the composer
This commit is contained in:
parent
952b345883
commit
2f7b241087
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue