Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit ce83a9d

Browse files
committed
Transitions: Switch from .then to .done for jQuery 3 compat
Also don't use when with only 1 arg
1 parent 2c1d8bc commit ce83a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/transitions/transitions_core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ QUnit.test( "scrolls the page", function( assert ) {
7878
QUnit.asyncTest( "resolves the transition deferred with the requisite data", function( assert ) {
7979
assert.expect( 4 );
8080

81-
$.when( instance.deferred ).then( function( name, reverse, to, from ) {
81+
instance.deferred.done( function( name, reverse, to, from ) {
8282
assert.equal( name, "foo" );
8383
assert.equal( reverse, "reverse" );
8484
assert.equal( to, $to );

0 commit comments

Comments
 (0)