there are a few patterns to create a global namespace for your code. It doesn't really involve jQuery or YUI per se. Here are a few helpful links:
http://benalman.com/news/2010/11/immediately-invoked-function-expression/ http://www.javascripttoolbox.com/bestpractices/ http://stackoverflow.com/questions/5411876/avoiding-polluting-the-global-namespace-with-javascript-dependencies - Anatoly http://www.geyfman.net On Mon, Jun 13, 2011 at 5:10 PM, Chandra Chintanippu <[email protected]>wrote: > I would like to know how to implement namespacing in jquery? As we are > migrating from YUI to JQuery i am trying to figure out what is the best way > to use namespacing in our files. > > Any help will be appreciated. > > Thanks, > Chandra > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
