jquery-boilerplate / jquery-patterns

A variety of jQuery plugin patterns for jump starting your plugin development
1.59k stars 243 forks source link

Modified Plugin.prototype, showing how to add more functions. #9

Closed kahlil closed 12 years ago

kahlil commented 12 years ago

I would like to propose a small change to this plugin, showing how to add more functions to this plugin, since the init function, in most cases will not be enough. As I understand it, adding all functions that I want to use to the plugin's prototype is the recommended way of going about it. If I am incorrect I would appreciate feedback about what is the best way to add functions that I want to use in init(). :)

Thanks.

addyosmani commented 12 years ago

Hey @kahlil. If you could update your PR against latest I'd be happy to merge.

kahlil commented 12 years ago

Ok, will do. Thx.

Sent from my iPhone

On Tuesday, 1. May 2012 at 17:38, Addy Osmani wrote:

Hey @kahlil. If you could update your PR against latest I'd be happy to merge.


Reply to this email directly or view it on GitHub: https://github.com/addyosmani/jquery-plugin-patterns/pull/9#issuecomment-5441039

kahlil commented 12 years ago

I am closing this pull request and will create a fresh one.