Further spacing & code style corrections.

parent a19c831b
...@@ -3,8 +3,7 @@ module( "queue", { teardown: moduleTeardown }); ...@@ -3,8 +3,7 @@ module( "queue", { teardown: moduleTeardown });
test( "queue() with other types", 14, function() { test( "queue() with other types", 14, function() {
stop(); stop();
var defer, var $div = jQuery({}),
$div = jQuery({}),
counter = 0; counter = 0;
$div.promise( "foo" ).done(function() { $div.promise( "foo" ).done(function() {
...@@ -27,7 +26,7 @@ test( "queue() with other types", 14, function() { ...@@ -27,7 +26,7 @@ test( "queue() with other types", 14, function() {
equal( ++counter, 4, "Dequeuing" ); equal( ++counter, 4, "Dequeuing" );
}); });
defer = $div.promise("foo").done(function() { $div.promise("foo").done(function() {
equal( counter, 4, "Testing previous call to dequeue in deferred" ); equal( counter, 4, "Testing previous call to dequeue in deferred" );
start(); start();
}); });
...@@ -183,7 +182,7 @@ test("clearQueue() clears the fx queue", function() { ...@@ -183,7 +182,7 @@ test("clearQueue() clears the fx queue", function() {
}); });
asyncTest( "fn.promise() - called when fx queue is empty", 3, function() { 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; promised = false;
foo.queue( function( next ) { foo.queue( function( next ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment