Adding ReactDOM as a global

This commit is contained in:
Christopher Speller
2015-10-15 12:11:08 -04:00
parent 1571a9a2df
commit 8d630fc3ee
2 changed files with 1 additions and 6 deletions

View File

@@ -19,6 +19,7 @@
},
"globals": {
"React": false,
"ReactDOM": false,
"ReactBootstrap": false
},
"rules": {

View File

@@ -39,12 +39,6 @@ export default class Navbar extends React.Component {
ChannelStore.addChangeListener(this.onChange);
ChannelStore.addExtraInfoChangeListener(this.onChange);
$('.inner__wrap').click(this.hideSidebars);
$('body').on('click.infopopover', function handlePopoverClick(e) {
if ($(e.target).attr('data-toggle') !== 'popover' && $(e.target).parents('.popover.in').length === 0) {
$('.info-popover').popover('hide');
}
});
}
componentWillUnmount() {
ChannelStore.removeChangeListener(this.onChange);