Commit 9374d917 authored by Andrew Sliwinski's avatar Andrew Sliwinski

Merge pull request #140 from rschamp/feature/remove-session-listener-on-unmount

Remove the session listener on unmount
parents 3545ed93 ce3fd38a
...@@ -9,6 +9,9 @@ var Session = { ...@@ -9,6 +9,9 @@ var Session = {
}, },
componentWillMount: function () { componentWillMount: function () {
window.addEventListener('session', this.updateSession); window.addEventListener('session', this.updateSession);
},
componentWillUnmount: function () {
window.removeEventListener('session', this.updateSession);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment