Fixed #1763 by checking to see if .createElement() is available on the context and if isn't default to other contexts.
This commit is contained in:
parent
d938c6bbd6
commit
76e3a90153
2 changed files with 19 additions and 4 deletions
|
@ -917,6 +917,8 @@ jQuery.extend({
|
|||
clean: function( elems, context ) {
|
||||
var ret = [];
|
||||
context = context || document;
|
||||
if (!context.createElement)
|
||||
context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
|
||||
|
||||
jQuery.each(elems, function(i, elem){
|
||||
if ( !elem )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue