Browse Source

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

main
iamdoron 10 years ago
parent
commit
e5a304ff1d
  1. 2
      docs/05-reusable-components.md

2
docs/05-reusable-components.md

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

Loading…
Cancel
Save