mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Modified test for wrap(String), added test for toggle(fn, fn)
This commit is contained in:
@@ -15,6 +15,13 @@ jQuery.fn.extend({
|
||||
* },function(){
|
||||
* $(this).removeClass("selected");
|
||||
* });
|
||||
*
|
||||
* var count = 0;
|
||||
* var fn1 = function() { count++; }
|
||||
* var fn2 = function() { count--; }
|
||||
* var link = $('#mark');
|
||||
* link.click().toggle(fn1, fn2).click().click().click().click().click();
|
||||
* ok( count == 1, "Check for toggle(fn, fn)" );
|
||||
*
|
||||
* @name toggle
|
||||
* @type jQuery
|
||||
|
||||
Reference in New Issue
Block a user