@samitouri / QOS-React-2 / commits / f1e6a0dad2

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

iamdoron committed Apr 2, 2015 at 14:06 UTC f1e6a0dad2bf474f26be14c8ceaaf44003e0a422
1 file changed +1 -1
docs/docs/05-reusable-components.md
+1 -1
@@ -155,7 +155,7 @@ var SetIntervalMixin = {
155 this.intervals.push(setInterval.apply(null, arguments));
156 },
157 componentWillUnmount: function() {
158 - this.intervals.map(clearInterval);
158 + this.intervals.forEach(clearInterval);
159 }
160 };
161