Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * concise, but cryptic for the first two minutes you see this
- */
- (function ($) {
- $(selector).each(function () {
- // code
- });
- $(selector).each(function () {
- // code
- });
- $(selector).each(function () {
- // code
- });
- })(jQuery);
- /*
- * clunky pollution of global namespace
- */
- var fakeMeaninglessNamespacingFunction = function() {
- var $ = jQuery;
- $(selector).each(function () {
- // code
- });
- $(selector).each(function () {
- // code
- });
- $(selector).each(function () {
- // code
- });
- }
- fakeMeaninglessNamespacingFunction();
Add Comment
Please, Sign In to add comment