@@ 2079-2095 (lines=17) @@ | ||
2076 | }); |
|
2077 | ||
2078 | jQuery.fn.extend({ |
|
2079 | queue: function( type, data ) { |
|
2080 | if ( typeof type !== "string" ) { |
|
2081 | data = type; |
|
2082 | type = "fx"; |
|
2083 | } |
|
2084 | ||
2085 | if ( data === undefined ) { |
|
2086 | return jQuery.queue( this[0], type ); |
|
2087 | } |
|
2088 | return this.each(function() { |
|
2089 | var queue = jQuery.queue( this, type, data ); |
|
2090 | ||
2091 | if ( type === "fx" && queue[0] !== "inprogress" ) { |
|
2092 | jQuery.dequeue( this, type ); |
|
2093 | } |
|
2094 | }); |
|
2095 | }, |
|
2096 | dequeue: function( type ) { |
|
2097 | return this.each(function() { |
|
2098 | jQuery.dequeue( this, type ); |
@@ 1648-1664 (lines=17) @@ | ||
1645 | }); |
|
1646 | ||
1647 | jQuery.fn.extend({ |
|
1648 | queue: function( type, data ) { |
|
1649 | if ( typeof type !== "string" ) { |
|
1650 | data = type; |
|
1651 | type = "fx"; |
|
1652 | } |
|
1653 | ||
1654 | if ( data === undefined ) { |
|
1655 | return jQuery.queue( this[0], type ); |
|
1656 | } |
|
1657 | return this.each(function( i ) { |
|
1658 | var queue = jQuery.queue( this, type, data ); |
|
1659 | ||
1660 | if ( type === "fx" && queue[0] !== "inprogress" ) { |
|
1661 | jQuery.dequeue( this, type ); |
|
1662 | } |
|
1663 | }); |
|
1664 | }, |
|
1665 | dequeue: function( type ) { |
|
1666 | return this.each(function() { |
|
1667 | jQuery.dequeue( this, type ); |