Permalink
Browse files

Fixed data check as to prevent multiple "instantiations" of the plugi…

…n on the same input
  • Loading branch information...
1 parent 2c96058 commit a44278462d6b8a321c759f2815d03942b9170bd7 @Akkuma committed Feb 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.ezmark.js
View
@@ -53,7 +53,7 @@
return this.each(function () {
var type = this.type;
- if ((type === 'radio' || type === 'checkbox') && !$.data(this, NAMESPACE)) {
+ if ((type === 'radio' || type === 'checkbox') && !$.data(this.parentNode, NAMESPACE)) {
var $this = $(this);
var classNames;

0 comments on commit a442784

Please sign in to comment.