zenorocha/jquery-boilerplate — pull request #23 by markdalgleish (2011-10-26 07:44:12+00:00)
Title: Add ability to call public prototype functions from plugin

Hey guys,

I really like your plugin boilerplate. I'd actually been thinking of making something similar for a while. Am I right in assuming that the code is partly inspired by some of my work from my blog post "Creating Highly Configurable jQuery Plugins" since I saw Addy Osmani feature it in his Smashing Magazine article, "Essential jQuery Plugin Patterns"? :)

I've added some code to the plugin wrapper that exposes any "public" function (ie. not beginning with an underscore) to the plugin,
e.g. ```$(element).defaultPluginName('functionName', arg1, arg2)```

I can see that the idea of this project is to keep the amount of boilerplate code to a minimum, but this is one feature that I think would benefit most plugin authors and is something that's tricky to implement manually in every project, making it perfect for a boilerplate.

Let me know, assuming you want to include this functionality, if there's any changes to the code or documentation that you'd like me to make.

Cheers,
Mark Dalgleish