currently the toString() will return the correct object name

so you can do:

setTimeout(this+'.dostuff()',100)

or

setTimeout(mywidget+'.dostuff()',100)



Pascal Bestebroer
[EMAIL PROTECTED]
http://www.dynamic-core.net

> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens Eytan Heidingsfeld
> Verzonden: dinsdag 6 maart 2001 18:32
> Aan: Dynapi-Dev
> Onderwerp: [Dynapi-Dev] Objects array
>
>
> I'm not sure you have noticed but in my DynLayer there is a
> property called
> index. There is also an array called Objects. I think that for
> purposes like
> starting new threads for certain method calls (to eliminate out of stack
> space errors or other workarounds) we should make every widget add this
> code. It is very simple you just need to add in the declaration
> function myWidget(){
> blah
> blah
> this.index = Objects.length;
> Objects[this.index] = this;
> }
>
> Then when you want to refrence it (let us say in a setTimeout) you just do
> the following:
> setTimeout("Objects["+this.index"+"].dostuff",100);
>
>
> What do you think?
> 8an
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to