Permalink
Browse files

Transitions: Switch from .then to .done for jQuery 3 compat

Also don't use when with only 1 arg
  • Loading branch information...
arschmitz committed Mar 28, 2016
1 parent e3e47d9 commit a1a182f4107ca0a2740fbf10230031b2dcedd9e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/unit/transitions/transitions_core.js
@@ -78,7 +78,7 @@ QUnit.test( "scrolls the page", function( assert ) {
QUnit.asyncTest( "resolves the transition deferred with the requisite data", function( assert ) {
assert.expect( 4 );
$.when( instance.deferred ).then( function( name, reverse, to, from ) {
instance.deferred.done( function( name, reverse, to, from ) {
assert.equal( name, "foo" );
assert.equal( reverse, "reverse" );
assert.equal( to, $to );

0 comments on commit a1a182f

Please sign in to comment.