The following code doesn't clear the interval and the callback gets executed infinitely: ``` js mV = vm.progressViewModel.get("maxValue"); // 100 vm.progressViewModel.set("currentValue", 0); // create a repeating timer to jump our progress value t = timer.setInterval(function () { var cV = vm.progressViewModel.get("currentValue"); var nV = cV + 5; console.log("new: " + nV + ", max: " + mV); if (nV >= mV) { console.log(">=!!!"); timer.clearInterval(t); } else { vm.progressViewModel.set("currentValue", nV); } }, 500); ```
Activity
Fix #817
Fix #817
Merge pull request #818 from NativeScript/atanasovg/timer-fix
lock commentedon Aug 30, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.