Re: [JSMentors] Re: JavaScript architecture

2011-08-05 Thread Thomas Junghans
load the news module) On Aug 3, 11:46 pm, Thomas Junghans thomas.jungh...@gmail.com wrote: Hi, why not iterate over all modules on your page and only execute those? You will need to use a naming convention such as .mod from oocss so your modules can be identified. There's a framwork which

Re: [JSMentors] JS API Design - Accepting Parameters

2011-01-13 Thread Thomas Junghans
Hi Let's say you go for B), there's a good pattern you can use explained here: http://enterprisejquery.com/2010/08/javascript-parameter-patterns-with-extend-and-beyond/ I personally go for option B) when I cannot remember the order of the arguments or there simply are too many ( 3). Cheers tj