use 'forEach' instead of 'map' when clearing intervals
This commit is contained in:
parent
3fad007bdb
commit
f1e6a0dad2
|
@ -155,7 +155,7 @@ var SetIntervalMixin = {
|
|||
this.intervals.push(setInterval.apply(null, arguments));
|
||||
},
|
||||
componentWillUnmount: function() {
|
||||
this.intervals.map(clearInterval);
|
||||
this.intervals.forEach(clearInterval);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue