X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=93ebe2009ed94e9353fb3bbf32b2db763e0177cd;hb=ce2555ea7c265d0e08084b469d785d3d719445f6;hp=567e6a0fa807350b87d7d77859f79b7965e2c5a6;hpb=83e98c28ef8aba11e525bf4266f8454232236ca0;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 567e6a0..93ebe20 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -56,7 +56,7 @@ var jQuery = function(a,c) { } // Watch for when an array is passed in - this.get( a.constructor == Array || a.length && !a.nodeType && a[0] != undefined && a[0].nodeType ? + this.get( a.constructor == Array || a.length && a != window && !a.nodeType && a[0] != undefined && a[0].nodeType ? // Assume that it is an array of DOM Elements jQuery.merge( a, [] ) :