IE doesn't care for boolean checks of .createElement - reverted back to using typeof instead.
This commit is contained in:
parent
d1f089952e
commit
615a4ce1b4
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue