get all widgets inside an element
Posted
by peirix
on Stack Overflow
See other posts from Stack Overflow
or by peirix
Published on 2010-05-31T08:42:50Z
Indexed on
2010/06/01
2:13 UTC
Read the original article
Hit count: 231
dojo
|dijit.registry
From the dojo documents on dijit.registry
, I see the forEach
method accepts a last parameter thisObject
. But it doesn't way what that object is. Is it a dijit widget or a dojo object?
I want to destroy all widgets inside an element (that will be replaced by AJAX) so they can be parsed again without conflicting id's.
dijit.registry.forEach(function(w) {
w.destroyRecursive();
}, dojo.byId("ajaxElement"));
But this destroys ALL widgets on the page...
© Stack Overflow or respective owner