Fixes broken test
This commit is contained in:
parent
a2c97b9e6b
commit
748c13f4a7
|
@ -190,7 +190,7 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||
_bindToClick: function(selector, binding) {
|
||||
binding = binding.split(',');
|
||||
this.keyTrapper.bind(binding, function(e) {
|
||||
e.preventDefault();
|
||||
if (e) { e.preventDefault(); }
|
||||
$(selector).click();
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue