Skip to content

Commit

Permalink
I was wrong...we need the event namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMurphy committed Feb 2, 2016
1 parent 8d6e245 commit e6d2c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jquery-bootstrap/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ var BootstrapModal = React.createClass({

// Bootstrap's modal class exposes a few events for hooking into modal
// functionality. Lets hook into one of them:
$(this.refs.root).on('hidden', this.handleHidden);
$(this.refs.root).on('hidden.bs.modal', this.handleHidden);
},
componentWillUnmount: function() {
$(this.refs.root).off('hidden', this.handleHidden);
$(this.refs.root).off('hidden.bs.modal', this.handleHidden);
},
close: function() {
$(this.refs.root).modal('hide');
Expand Down

0 comments on commit e6d2c27

Please sign in to comment.