Implemented the new .slice() method (bug #1517).
[jquery.git] / src / jquery / jquery.js
index b7091e2..ff33034 100644 (file)
@@ -1160,6 +1160,10 @@ jQuery.fn = jQuery.prototype = {
                        ( this.length ? this[0].innerHTML : null ) :
                        this.empty().append( val );
        },
+
+       slice: function() {
+               return this.pushStack( Array.prototype.slice.apply( this, arguments ) );
+       },
        
        /**
         * @private