On Feb 23, 6:18 pm, Asen Bozhilov <[email protected]> wrote: > jemptymethod : > > > I inherited some code that essentially does this: > > You should consider how these changes will affect on existing code in > your application. In order to prevent incompatibilities with existing > code, you should decide the best approach for you. > > > user = deserializeUser(params); //var seemingly omitted by design > > initViewPort(); > > > initViewPort() in turn calls: > > > initHeaderPanel(); > > initMenuPanel(); > > initQuotesPanel(); > > The problem here is not only `user' variable. Each of `initViewPort', > `initHeaderPanel', `initMenuPanel', `initQuotesPanel' are global. So > they are also global pollutions.
No they aren't, I just trimmed the namespace off for the purposes of posting. My question is strictly about the 'user' variable. -- 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]
