X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=23b96442e961a929e01fd6f69a1a7eeb46817406;hb=957cd6fb2a2b7b8cfe9ac6b3f2b3cc2bc8163449;hp=35cac37b747c73470c7087abb25f1e8833c71004;hpb=b7a3b220a8a2b5b0378c9f176ca5ae0f786a6fcf;p=jquery.git diff --git a/src/core.js b/src/core.js index 35cac37..23b9644 100644 --- a/src/core.js +++ b/src/core.js @@ -39,9 +39,6 @@ var jQuery = function( selector, context ) { 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; @@ -319,7 +316,7 @@ jQuery.extend({ 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"; + return ((elem ? elem.ownerDocument || elem : 0).documentElement || 0).nodeName !== "HTML"; }, // Evalulates a script in a global context