4. The jQuery plugin authoring
guidelines
● Extending jQuery takes one of two forms:
● Utility functions defined directly on $ (an alias for
jQuery)
● Methods to operate on a jQuery wrapped set (so-
called jQuery commands)
● Naming files and functions
● Beware the $
● Taming complex parameter lists
●
5. The jQuery plugin authoring guidelines
Naming files and functions
● Prefix the filename with jquery.
● Follow that with the name of the plugin.
● Conclude with .js.
jquery.openthinklabs.utils.js
6. The jQuery plugin authoring guidelines
Beware the $
(function($){
//
// Plugin definition goes here
//
})(jQuery);