Commit 0e5f6c2e by Brian Jacobel

Fix bug on new post creation where we would try to hide an element that wasn't there

parent fd0cf404
......@@ -156,9 +156,11 @@
this.$('.inline-thread').addClass('is-hidden');
// Delete the thread view
if (this.threadView) {
this.threadView.$el.empty().off();
this.threadView.stopListening();
this.threadView = null;
}
// Show the thread list view
this.threadListView.$el.removeClass('is-hidden');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment