FIX: not unbinding uploadTarget correctly

This commit is contained in:
Sam 2015-05-29 16:01:24 +10:00
parent 346768921e
commit 77c7bad61f
1 changed files with 1 additions and 1 deletions

View File

@ -541,7 +541,7 @@ const ComposerView = Discourse.View.extend(Ember.Evented, {
_unbindUploadTarget() { _unbindUploadTarget() {
this.messageBus.unsubscribe("/uploads/composer"); this.messageBus.unsubscribe("/uploads/composer");
const $uploadTarget = $("#reply-controler"); const $uploadTarget = $("#reply-control");
try { $uploadTarget.fileupload("destroy"); } try { $uploadTarget.fileupload("destroy"); }
catch (e) { /* wasn't initialized yet */ } catch (e) { /* wasn't initialized yet */ }
$uploadTarget.off(); $uploadTarget.off();