Skip to content

Commit

Permalink
fix jQuery plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wilddeer committed Jun 2, 2014
1 parent 848f63b commit 639b6d6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
6 changes: 4 additions & 2 deletions dist/peppermint.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Peppermint touch slider
* v. 1.3.1 | https://github.com/wilddeer/Peppermint
* v. 1.3.2 | https://github.com/wilddeer/Peppermint
* Copyright Oleg Korsunsky | http://wd.dizaina.net/
*
* Depends on Event Burrito (included) | https://github.com/wilddeer/Event-Burrito
Expand Down Expand Up @@ -478,8 +478,10 @@ if (window.jQuery) {
(function($) {
$.fn.Peppermint = function(options) {
this.each(function() {
$(this).data('Peppermint', Peppermint($(this)[0], options));
$(this).data('Peppermint', Peppermint(this, options));
});

return this;
};
})(window.jQuery);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/peppermint.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions dist/pure/peppermint.pure.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Peppermint touch slider
* v. 1.3.1 | https://github.com/wilddeer/Peppermint
* v. 1.3.2 | https://github.com/wilddeer/Peppermint
* Copyright Oleg Korsunsky | http://wd.dizaina.net/
*
* Depends on Event Burrito | https://github.com/wilddeer/Event-Burrito
Expand Down Expand Up @@ -478,8 +478,10 @@ if (window.jQuery) {
(function($) {
$.fn.Peppermint = function(options) {
this.each(function() {
$(this).data('Peppermint', Peppermint($(this)[0], options));
$(this).data('Peppermint', Peppermint(this, options));
});

return this;
};
})(window.jQuery);
}
Loading

0 comments on commit 639b6d6

Please sign in to comment.