View
 

Coding standards

This version was saved 17 years ago View current version     Page history
Saved by Richard D. Worth
on March 24, 2009 at 9:32:17 am
 

This page is still being fleshed out.

 

  • No browser checks (unless completely necessary) - use jQuery.support instead
  • Plugins must work regardless of what options are passed to init.  All options are truly optional and may be changed at any time.
  • Use jQuery.ui.keyCode for all keyboard events.
  • Do not abbreviate variable names; the bytes will be saved when compressed.
  • Use curly braces for all if statements.
  • do not modify options that a user passes in, except when they are used to reflect the state of the plugin
  • all default values must be explicit
  • no default value should be undefined. At the least it should be null or false

Comments (0)

You don't have permission to comment on this page.