vkarpov15 / mean-stack-todo

Other
90 stars 69 forks source link

Update TodoListController.js #1

Closed leighghunt closed 11 years ago

leighghunt commented 11 years ago

setInterval() calls were stacking up, as they fire repeatedly, each one adding a new timer.

I only noticed when experimenting and reducing interval to 30 seconds, and after a few minutes the browser would start hogging the CPU.