created cart icon with number of items notification - it's still buggy

This commit is contained in:
Senad Uka
2015-02-08 15:18:15 +01:00
parent b25683abca
commit 02925f8866

View File

@@ -38,6 +38,10 @@ var CartIcon = React.createClass({
if (this.isMounted()) {
this.setState(CartStore.getWholeCartState());
}
},
componentWillUnmount: function () {
CartStore.removeChangeListener(this._onChange);
}