FIX: Sharing link stood visible after using browser’s back button

This commit is contained in:
Guilherme Carreiro 2014-11-18 20:29:46 -02:00
parent 806d856d65
commit 7ad10b5ea6

View file

@ -104,6 +104,8 @@ export default Discourse.View.extend({
},
willDestroyElement: function() {
this.get('controller').send('close');
$('html').off('click.discoure-share-link')
.off('mousedown.outside-share-link')
.off('keydown.share-view');