Jean Boussier <jean.boussier@gmail.com>
Adam Coulombe <me@adam.co>
Andrew Plummer <plummer.andrew@gmail.com>
+Nguyen Phuc Lam <ruado1987@gmail.com>
});
asyncTest( "Handle queue:false promises", 10, function() {
- var foo = jQuery( "#foo" ).clone().andSelf(),
+ var foo = jQuery( "#foo" ).clone().addBack(),
step = 1;
foo.animate({
path = "";
markup
- .find( "*" ).andSelf().on( "click", function( e ) {
+ .find( "*" ).addBack().on( "click", function( e ) {
path += this.nodeName.toLowerCase() + " ";
})
.filter( "b" ).on( "click", function( e ) {
});
asyncTest( "fn.promise() - called when fx queue is empty", 3, function() {
- var foo = jQuery( "#foo" ).clone().andSelf(),
+ var foo = jQuery( "#foo" ).clone().addBack(),
promised = false;
foo.queue( function( next ) {
var j = jQuery("#nonnodes").contents();
equal( j.find("div").length, 0, "Check node,textnode,comment to find zero divs" );
- equal( j.find("div").andSelf().length, 3, "Check node,textnode,comment to find zero divs, but preserves pushStack" );
+ equal( j.find("div").addBack().length, 3, "Check node,textnode,comment to find zero divs, but preserves pushStack" );
});
test( "find(leading combinator)", function() {
equal( $two.find( $first ).length, 0, "first is in the collection and not within two" );
equal( $two.find( $first ).length, 0, "first is in the collection and not within two(node)" );
- equal( $two.find( $foo[ 0 ] ).andSelf().length, 2, "find preserves the pushStack, see #12009" );
+ equal( $two.find( $foo[ 0 ] ).addBack().length, 2, "find preserves the pushStack, see #12009" );
});
test("is(String|undefined)", function() {