Merge pull request #2981 from karreiro/share_bug

FIX: Sharing link stood visible after using browser’s back button
This commit is contained in:
Robin Ward 2014-11-24 10:29:46 -05:00
commit a91d5fc726

View File

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