Make sure that at least one argument is provided to .slice(), in accordance with...
[jquery.git] / src / core.js
index b105c4c..7281b44 100644 (file)
@@ -128,7 +128,9 @@ jQuery.fn = jQuery.prototype = {
                return this.length;
        },
 
-       toArray: slice,
+       toArray: function(){
+               return slice.call( this, 0 );
+       },
 
        // Get the Nth element in the matched element set OR
        // Get the whole matched element set as a clean array