Skip to content

Commit

Permalink
FIX: not unbinding uploadTarget correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed May 29, 2015
1 parent 3467689 commit 77c7bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/discourse/views/composer.js.es6
Expand Up @@ -541,7 +541,7 @@ const ComposerView = Discourse.View.extend(Ember.Evented, {

_unbindUploadTarget() {
this.messageBus.unsubscribe("/uploads/composer");
const $uploadTarget = $("#reply-controler");
const $uploadTarget = $("#reply-control");
try { $uploadTarget.fileupload("destroy"); }
catch (e) { /* wasn't initialized yet */ }
$uploadTarget.off();
Expand Down

1 comment on commit 77c7bad

@ZogStriP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.