[Project_owners] Trouble using bind

Martin Mauch martin.mauch at gmail.com
Sat Mar 17 13:33:57 PST 2007


window.setTimeout executes the given function once,
window.setIntervalrepeats the function until you stop it. I need to
repeat the function...
But thanks!

On 3/17/07, xeen <aka.xeen at gmail.com> wrote:
>
> I haven't ever heard of that interface, but mightn't
> window.setTimeout("function();",1234); be the easier alternative?
>
> On 3/16/07, Martin Mauch <martin.mauch at gmail.com> wrote:
> > Hello,
> > I am trying to use Prototype in my extension, especially the
> > PeriodicalExecuter. Somehow the code works when executed directly from a
> > HTML site but hangs when used in an extension. I inserted some debug
> > statements and narrowed the problem down to the expression
> > this.onTimerEvent.bind(this)
> > in PeriodicalExecuter.registerCallback
> > Somehow the interpreter does not return from that expression when used
> for
> > extensions.
> > Does anyone have any ideas?
> > Thanks, Martin
> >
> > _______________________________________________
> > Project_owners mailing list
> > Project_owners at mozdev.org
> > http://mozdev.org/mailman/listinfo/project_owners
> >
> >
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20070317/79a43cc9/attachment.html 


More information about the Project_owners mailing list