Commit 615a4ce1 authored by John Resig's avatar John Resig

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

parent d1f08995
......@@ -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){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment