Always return jQuery in modules that can be included separately

This commit is contained in:
Timmy Willison 2013-09-08 21:25:27 -04:00
parent 99c123b159
commit b534ee2ccf
14 changed files with 24 additions and 2 deletions

View File

@ -1,6 +1,10 @@
define([
"./core",
"./attributes/attr",
"./attributes/prop",
"./attributes/classes",
"./attributes/val"
]);
], function( jQuery ) {
// Return jQuery for attributes-only inclusion
return jQuery;
});

View File

@ -201,4 +201,5 @@ jQuery.Callbacks = function( options ) {
return self;
};
return jQuery;
});

View File

@ -529,4 +529,5 @@ jQuery.each({
}
});
return jQuery;
});

View File

@ -171,4 +171,5 @@ function dataAttr( elem, key, data ) {
return data;
}
return jQuery;
});

View File

@ -144,4 +144,6 @@ jQuery.extend({
return deferred.promise();
}
});
return jQuery;
});

View File

@ -43,4 +43,6 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
};
});
});
return jQuery;
});

2
src/effects.js vendored
View File

@ -627,5 +627,5 @@ jQuery.fx.speeds = {
_default: 400
};
return jQuery;
});

View File

@ -844,4 +844,5 @@ jQuery.fn.extend({
}
});
return jQuery;
});

View File

@ -580,4 +580,6 @@ function fixInput( src, dest ) {
dest.defaultValue = src.defaultValue;
}
}
return jQuery;
});

View File

@ -178,4 +178,5 @@ jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( me
};
});
return jQuery;
});

View File

@ -138,4 +138,5 @@ jQuery.fn.extend({
}
});
return jQuery;
});

View File

@ -104,4 +104,6 @@ function buildParams( prefix, obj, traditional, add ) {
add( prefix, obj );
}
}
return jQuery;
});

View File

@ -286,4 +286,6 @@ function winnow( elements, qualifier, not ) {
return ( indexOf.call( qualifier, elem ) >= 0 ) !== not;
});
}
return jQuery;
});

View File

@ -71,4 +71,6 @@ jQuery.fn.extend({
}).end();
}
});
return jQuery;
});