jquery event: jQuery.toggle can accept more than 2 functions, closes #2378
This commit is contained in:
parent
e9c620794f
commit
c3cbc5bf98
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ jQuery.fn.extend({
|
|||
|
||||
toggle: function( fn, fn2 ){
|
||||
return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
|
||||
this._toggle( fn, fn2 ) :
|
||||
this._toggle.apply( this, arguments ) :
|
||||
fn ?
|
||||
this.animate({
|
||||
height: "toggle", width: "toggle", opacity: "toggle"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue