WebDev:FrontendCodeStandards: Difference between revisions

Jump to navigation Jump to search
Line 314: Line 314:
** Use Module pattern for singletons? (http://yuiblog.com/blog/2007/06/12/module-pattern/)
** Use Module pattern for singletons? (http://yuiblog.com/blog/2007/06/12/module-pattern/)
** Use .prototype for objects
** Use .prototype for objects
** Standardize on jQuery?
** Use jQuery
*** jQuery++, but remember Cake uses Prototype and the namespaces can conflict
*** Very fast & light
*** If you need another library, please concatenate & use as little as possible
** Make JS reusable as best as possible.
** Make JS reusable as best as possible.
** var your variables
** var your variables
975

edits

Navigation menu