[dojo-contributors] dojo.dom and multiple window objects
liucougar at gmail.com
Sat Jun 3 10:07:55 EDT 2006
could someone give me some advice here for this issue please?
I need to implement this to proceed.
On 5/29/06, Paul Sowden <paul at idontsmoke.co.uk> wrote:
> At the moment dojo.dom uses whichever window and document objects are
> defined in its scope at runtime. There are multiple reasons to fix
> this to be able to specify a specific window and document object to
> work with.
> MochiKit handles this using private variables which point at a
> default window and document object which can be set by the user. It
> also provides methods withWindow and withDocument which allow the
> user to change the window and document objects temporarily, restoring
> the previous defaults after execution .
> Another way to do this is to provide optional parameters to either
> specific functions which use the document or window objects or just
> every function regardless. While simpler, I'm not so fond of this
> Anyhow, Heng needs to implement an interface to provide this
> functionality for the Editor enhancement and we haven't settled on
> the "correct" implementation. Thoughts?
>  http://mochikit.com/doc/html/MochiKit/DOM.html#dom-context
> Paul Sowden
> dojo-contributors mailing list
> dojo-contributors at dojotoolkit.org
"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage
More information about the dojo-contributors