created cart icon with number of items notification - it's still buggy
This commit is contained in:
@@ -38,6 +38,10 @@ var CartIcon = React.createClass({
|
|||||||
if (this.isMounted()) {
|
if (this.isMounted()) {
|
||||||
this.setState(CartStore.getWholeCartState());
|
this.setState(CartStore.getWholeCartState());
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
componentWillUnmount: function () {
|
||||||
|
CartStore.removeChangeListener(this._onChange);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user