Try using lyr.parent and/or lyr._created These will tell you if the layer is a child layer or if it was created
-- Raymond Irving --- Brian Hayes <[EMAIL PROTECTED]> wrote: > Hello everyone, > > When you create a new DynLayer, but do > not add it to the page > via dynapi.document.addChild() and > dynapi.document.insertAllChildren(); how > can you know this information within a custom > widget? The reason I ask, is > to prevent looping with a widget if it does not get > added to the page, or > removed, etd... > > Thanks, > > Brian Hayes > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help