I have a function that I want to be able to allow passing in either a regular javascript DOM element object or a jQuery object. If its not yet a jQuery object I will then make i
jQuery does it like this:
if ( selector.nodeType )
(jQuery 1.4.3, line 109)