Changeset 2784
- Timestamp:
- 08/20/07 02:51:57 (1 year ago)
- Location:
- trunk/jquery/src/jquery
- Files:
-
- 2 modified
-
coreTest.js (modified) (1 diff)
-
jquery.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/jquery/coreTest.js
r2783 r2784 921 921 isSet( $("#foo a").contains("log").get(), q("anchor2", "simon"), "contains()" ); 922 922 }); 923 924 test("slice()", function() { 925 expect(4); 926 isSet( $("#ap a").slice(1,2), q("groups"), "slice(1,2)" ); 927 isSet( $("#ap a").slice(1), q("groups", "anchor1", "mark"), "slice(1)" ); 928 isSet( $("#ap a").slice(0,3), q("google", "groups", "anchor1"), "slice(0,3)" ); 929 isSet( $("#ap a").slice(-1), q("mark"), "slice(-1)" ); 930 }); -
trunk/jquery/src/jquery/jquery.js
r2783 r2784 1161 1161 this.empty().append( val ); 1162 1162 }, 1163 1164 slice: function() { 1165 return this.pushStack( Array.prototype.slice.apply( this, arguments ) ); 1166 }, 1163 1167 1164 1168 /**
