push = Array.prototype.push,
slice = Array.prototype.slice;
-// Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
-
jQuery.fn = jQuery.prototype = {
init: function( selector, context ) {
var match, elem, ret;
isXMLDoc: function( elem ) {
// documentElement is verified for cases where it doesn't yet exist
// (such as loading iframes in IE - #4833)
- return ((elem.ownerDocument || elem).documentElement || 0).nodeName !== "HTML";
+ var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
+ return documentElement ? documentElement.nodeName !== "HTML" : false;
},
// Evalulates a script in a global context