IE doesn't care for boolean checks of .createElement - reverted back to using typeof instead.

This commit is contained in:
John Resig 2008-11-29 01:14:02 +00:00
parent d1f089952e
commit 615a4ce1b4

View file

@ -945,7 +945,7 @@ jQuery.extend({
context = context || document;
// !context.createElement fails in IE with an error but returns typeof 'object'
if ( context.createElement === undefined )
if ( typeof context.createElement === "undefined" )
context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
jQuery.each(elems, function(i, elem){