dgrid's destroy method can silently fail to perform its job if the dgrid node has been detached from the DOM. In List#cleanup the call to byId only works for elements still in the DOM. This PR changes the byId method to use dojo/query and the context parameter so that descendants of the specified context can be retrieved even if context is detached from the DOM.
dgrid's
destroy
method can silently fail to perform its job if the dgrid node has been detached from the DOM. InList#cleanup
the call tobyId
only works for elements still in the DOM. This PR changes thebyId
method to usedojo/query
and thecontext
parameter so that descendants of the specifiedcontext
can be retrieved even ifcontext
is detached from the DOM.Fixes #1318