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.

enter image description here

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

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -