mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Keyboard shortcuts broke in the composer
This commit is contained in:
@@ -324,9 +324,9 @@
|
|||||||
// event.
|
// event.
|
||||||
util.addEvent = function (elem, event, listener) {
|
util.addEvent = function (elem, event, listener) {
|
||||||
var wrapped = function() {
|
var wrapped = function() {
|
||||||
var wrappedArgs = Array.prototype.slice(arguments);
|
var wrappedArgs = Array.prototype.slice.call(arguments);
|
||||||
Ember.run(function() {
|
Ember.run(function() {
|
||||||
listener.call(this, wrappedArgs);
|
listener.apply(this, wrappedArgs);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
elem.addEventListener(event, wrapped, false);
|
elem.addEventListener(event, wrapped, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user