The If Works This dirt was a building before

Archive for 2 July 2008

There is no such thing as a JavaScript plugin

One thing that you often hear people say about jQuery is that is has a neat plugin mechanism. It’s true there are a great many useful plugins available for jQuery and it makes them super-easy to write, but I want to let you in on a little secret: jQuery.fn = jQuery.prototype; That is jQuery’s plugin [...]