Code
Code
Code

Pattern for programming with JQuery plugins.

This tutorial provides a pattern to develop a JQuery plugin.

Why create a jQuery plugin?

A small list of reasons given in the article:

  1.  Reuse, reuse, reuse
  2. Encapsulation
  3. Easy to write
  4. Maintain chainability
  5. Public distribution
  6. Prevent namespace clashing

And this article does not mention it but is important enough, do you need the plugin. Some people say check if exist one plugin doing something similar, but that is more relative.

comments powered by Disqus
Comunicatek - - La Bisbal d’Empordà - dani@comunicatek.com - About code - Legal