+(function( jQuery ) {
+
jQuery.extend({
queue: function( elem, type, data ) {
if ( !elem ) {
if ( data === undefined ) {
return jQuery.queue( this[0], type );
}
- return this.each(function( i, elem ) {
+ return this.each(function( i ) {
var queue = jQuery.queue( this, type, data );
if ( type === "fx" && queue[0] !== "inprogress" ) {
return this.queue( type || "fx", [] );
}
});
+
+})( jQuery );