Skip to content

Commit

Permalink
Merge pull request jquery-boilerplate#4 from skippychalmers/master
Browse files Browse the repository at this point in the history
Minor bug fix, pluginName included in $.fn
  • Loading branch information
addyosmani committed Sep 12, 2011
2 parents 3796759 + a224c1d commit ec15795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.basic.plugin-boilerplate.js
Expand Up @@ -49,7 +49,7 @@

// A really lightweight plugin wrapper around the constructor,
// preventing against multiple instantiations
$.fn.plugin = function (options) {
$.fn[pluginName] = function (options) {
return this.each(function () {
if (!$.data(this, 'plugin_' + pluginName)) {
$.data(this, 'plugin_' + pluginName, new Plugin(this, options));
Expand Down

0 comments on commit ec15795

Please sign in to comment.