addyosmani/jquery-plugin-patterns — Issue #8: Exposing defaults as a property of $.fn.pluginName
Author: wheresrhys
Created: 2012-01-12 00:47:14+00:00
State: open

I was about to apply your basic plugin boilerplate to my plugins as I think in general it's neater than what I've been doing, but there is one thing I don't like; namely that the defaults are not exposed publically so that a developer can change the default settings for the plugin (eg if a plugin defaults to autoplay: false, but on the developer's site most instances use autoplay:true it makes sense for them to over-ride the default globally).

I think this would need to be done by getting rid of the defaults variable and using $.fn[pluginName].defaults instead.