Skip to content
Permalink
Browse files

IE doesn't care for boolean checks of .createElement - reverted back …

…to using typeof instead.
  • Loading branch information
jeresig committed Nov 29, 2008
1 parent d1f0899 commit 615a4ce1b4c20e5b538332d0a6e19157243a9471
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -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){

0 comments on commit 615a4ce

Please sign in to comment.
You can’t perform that action at this time.