mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fixes broken test
This commit is contained in:
@@ -190,7 +190,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||||||
_bindToClick: function(selector, binding) {
|
_bindToClick: function(selector, binding) {
|
||||||
binding = binding.split(',');
|
binding = binding.split(',');
|
||||||
this.keyTrapper.bind(binding, function(e) {
|
this.keyTrapper.bind(binding, function(e) {
|
||||||
e.preventDefault();
|
if (e) { e.preventDefault(); }
|
||||||
$(selector).click();
|
$(selector).click();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user