use 'forEach' instead of 'map' when clearing intervals

This commit is contained in:
iamdoron 2015-04-02 14:06:08 +03:00
parent 3fad007bdb
commit f1e6a0dad2
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ var SetIntervalMixin = {
this.intervals.push(setInterval.apply(null, arguments));
},
componentWillUnmount: function() {
this.intervals.map(clearInterval);
this.intervals.forEach(clearInterval);
}
};