]> source.dussan.org Git - jquery.git/commit
Added support for the new .andSelf() method. This method combines the previous two...
authorJohn Resig <jeresig@gmail.com>
Tue, 4 Sep 2007 04:44:54 +0000 (04:44 +0000)
committerJohn Resig <jeresig@gmail.com>
Tue, 4 Sep 2007 04:44:54 +0000 (04:44 +0000)
commitf28f199dc0a353135ef8b9afa2f3d25c6ffd2c75
tree69a8d43069aa367f2953b11d780bfe2f57c558b6
parentd259ec1a93ea087d76c02009eccaa42786f737bb
Added support for the new .andSelf() method. This method combines the previous two matched sets on the stack into a single stack.

For example:
  $("#foo").parent();
  // => [ #bar ]

  $("#foo").parent().andSelf();
  // => [ #bar, #foo ]
src/jquery/coreTest.js
src/jquery/jquery.js