#ifndef __browser_dom_Document__
#define __browser_dom_Document__

////////////////////////////////////////////////////////////////////////////////
// Document

Document = DomElement.get(document);

#ifdef DEFINE_GLOBALS

function $(selector, root) {
	return (root || Document).getElement(selector);
}

function $$(selector, root) {
	return (root || Document).getElements(selector);
}

#endif // DEFINE_GLOBALS

#endif // __browser_dom_Document__
#ifndef __browser_dom_Document__
#define __browser_dom_Document__

////////////////////////////////////////////////////////////////////////////////
// Document

Document = DomElement.get(document);

#ifdef DEFINE_GLOBALS

function $(selector, root) {
	return DomElement.get(root || Document).getElement(selector);
}

function $$(selector, root) {
	return DomElement.get(root || Document).getElements(selector);
}

#endif // DEFINE_GLOBALS

#endif // __browser_dom_Document__
Allow string selectors in $() and $$()
Allow string selectors in $() and $$()

git-svn-id: f9d823c90a32400593a994373deabe1ce7dbadd7@131 917dd4d6-6a9c-4700-b622-114467236220
