Thanks Nathan. We are currently following the latter approach. ~Chandra
On Mon, Jun 13, 2011 at 12:06 PM, Nathan Sweet <[email protected]>wrote: > >I would like to know how to implement namespacing in jquery? > I think you need to give just a little more information. Are you hiding > your custom methods and functionality in the YUI namespace, or are you > putting YUI in your own custom namespace? Personally I favor the latter. At > the company I work for we are forced to use jQuery, because it's what our > clients use. Instead of putting anything in the jQuery namespace we actually > don't allow jQuery to become global, and instead hide it in our own > namespace, putting all of our custom functionality in that shared namespace. > jQuery actually makes this easy to do, as it ties jQuery to the global > namespace by passing it in an immediately called function, passing the > window object to the function, you could simply change it to be your own > custom namespace. > > > On Mon, Jun 13, 2011 at 10:10 AM, 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] > -- 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]
