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
1 changed files with 2 additions and 0 deletions

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');