Yep, usually something like:
if (!this.created) return;
If you look in some of the included widgets you will see these checks
--
// Robert Rainwater
--
DynAPI Homepage: http://dynapi.sourceforge.net/
DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/
On Sunday, February 25, 2001 8:16:29 PM Michael Pemberton wrote:
> check that you are using the oncreate event to access the elements on the
> layer. the browser layer object is not created at the time yoyur are trying to
> access it.
>
> also, move this type of questions to the help list.
>
> Eytan Heidingsfeld wrote:
>
> > I'm trying to write a widget your way and am getting elm.style is undefined
> > does anyone know why this would happen or do I have to track it?
> > 8an
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
> --
> Michael Pemberton
> [EMAIL PROTECTED]
> ICQ: 12107010
>
>
>
>
>
> _______________________________________________
> 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