X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=83711def941560677c6b6006c67bfdcedd332f16;hb=729396e6cfb1a0495399609f5929fb630a49649d;hp=b01038766ff64b58fe5d4bf1f372cb64cb55ffda;hpb=e50a2f6ca3a03501510228f940f48a0faa12127d;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index b010387..83711de 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1443,6 +1443,9 @@ jQuery.extend({ arg = div.childNodes; } + + if ( arg.length === 0 ) + continue; if ( arg[0] == undefined ) r.push( arg );