FIX: not unbinding uploadTarget correctly
This commit is contained in:
parent
346768921e
commit
77c7bad61f
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue