Re: (AngularJS UnderscoreJS) loop through array and assign value to variable with delay?

Friday, March 15, 2013

Hi, and thanks for replaying, but my problem is not that I want a function that runs periodically indefinitely, what I really need is a function that runs on mouse enter until the end of the array, then stops and stays there, then on mouse leave the function re-run again with different array the reverse of the first one and do the same runs until the end of the array and stops and stays there.
So basically as in the plunker that i provided in my first post i can't seem to be able to clear the timeout, the function runs indefinitely.
To show a better example what exactly I need here's a plunker with working example, but it have a bug if the targeted element have multiple classes they'll get remover, bug could be seen in this plunker, I hope this clear enough, thanks in advance.

On Thursday, March 14, 2013 7:51:00 PM UTC+1, yahya Kacem wrote:
Hi everyone, I need to loop through an array and assign each value to the same variable with delay of 100ms I'm using underscore.js for this here's a example plunker.
Thanks in advance.

You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit


Post a Comment

Note: Only a member of this blog may post a comment.

Copyright © 2010 Web Design | Free Blogger Templates by Splashy Templates | Layout by Atomic Website Templates

Vida de bombeiro Recipes Informatica Humor Jokes Mensagens Curiosity Saude Video Games Animals Diario das Mensagens Eletronica Rei Jesus News Noticias da TV Artesanato Esportes Noticias Atuais Games Pets Career Religion Recreation Business Education Autos Academics Style Television Programming Motosport Humor News The Games Home Downs World News Internet Design Entertaimment Celebrities 1001 Games Doctor Pets Net Downs World Enter Jesus Mensagensr Android Rub Letras Dialogue cosmetics Genexus lasofia thebushrajr wingshock tripedes gorduravegetal dainfamia dejavu-transpersonal jsbenfica republicadasbadanas ruiherbon iranianforaryans eaystcheyl fotosdanadir Só Humor Curiosity Gifs Medical Female American Health Madeira Designer PPS Divertidas Estate Travel Estate Writing Computer Matilde Ocultos Matilde futebolcomnoticias girassol lettheworldturn topdigitalnet Bem amado enjohnny produceideas foodasticos cronicasdoimaginario downloadsdegraca compactandoletras newcuriosidades blogdoarmario arrozinhoii