Skip to content

Commit

Permalink
Merge pull request #25 from PandaWood/patch-1
Browse files Browse the repository at this point in the history
Update jquery.boilerplate.coffee
  • Loading branch information
zenorocha committed Dec 2, 2011
2 parents e586af5 + fc2d49b commit 5cdbce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.boilerplate.coffee
Expand Up @@ -41,7 +41,7 @@
# A really lightweight plugin wrapper around the constructor,
# preventing against multiple instantiations
$.fn[pluginName] = (options) ->
this.each ->
@each ->
if !$.data(this, "plugin_#{pluginName}")
$.data(this, "plugin_#{pluginName}", new Plugin(this, options))
$.data(@, "plugin_#{pluginName}", new Plugin(@, options))
)(jQuery, window, document)

0 comments on commit 5cdbce4

Please sign in to comment.