Fixes broken test

This commit is contained in:
Robin Ward 2014-12-15 13:13:39 -05:00
parent a2c97b9e6b
commit 748c13f4a7
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}); });
}, },