javascript - Possible memory leak $timeout -
alright i'm making application schoolproject in angularjs. has $interval running 90 minutes (it's pretty used actual timer) , recursive $timeout. there's setinterval running on index.html file checks currenttime of playing youtube video, it's cancelled. now, looked @ timeline in chrome after recording 7 minutes , shows.

now have limited knowledge on information, i've read, js heap line should more of saw, instead application it's more steps upwards until hits constant. indicate there's form of memory leak in application?
this recursive $timeout code:
function startloop(i){ if(i >= sponsors.length) { startloop(0); return; } sponsorscurrentindex = i; showsponsor(i); recursivestart = $timeout(function () { startloop(i+1); }, sponsors[i].length * 1000); }
Comments
Post a Comment