Javascript plugins design pattern like jQuery

Posted by Marco Demaio on Stack Overflow See other posts from Stack Overflow or by Marco Demaio
Published on 2010-05-20T11:37:01Z Indexed on 2010/05/20 11:40 UTC
Read the original article Hit count: 212

Filed under:
|
|

Could someone write down a very simple basic example in javascript to conceptualize (and hopefully make me understand) how the jQuery plugin design pattern is done and how it works?

I'm not interested in how creating plugin for jQuery (so no jQuery code here at all). I'm interested in a simple explanation (maybe with a bit of Javascript code) to explain how it is done the plugin concept.

Plz do not reply me to go and read jQuery code, I tried, but I it's too complex, otherwise I would have not post a question here.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about plugins