return this.length;
},
+ toArray: Array.prototype.slice,
+
// Get the Nth element in the matched element set OR
// Get the whole matched element set as a clean array
get: function( num ) {
// args is for internal usage only
each: function( object, callback, args ) {
- var name, i = 0,
+ var name, i = 0,
length = object.length,
isObj = length === undefined || jQuery.isFunction(object);
isSet( jQuery("p").get(), q("firstp","ap","sndp","en","sap","first"), "Get All Elements" );
});
+test("toArray()", function() {
+ expect(1);
+ isSet ( jQuery("p").toArray(),
+ q("firstp","ap","sndp","en","sap","first"),
+ "Convert jQuery object to an Array" )
+})
+
test("get(Number)", function() {
expect(1);
equals( jQuery("p").get(0), document.getElementById("firstp"), "Get A Single Element" );