diff --git a/jquery.collection.js b/jquery.collection.js index 29789fb..c118eaf 100644 --- a/jquery.collection.js +++ b/jquery.collection.js @@ -740,11 +740,9 @@ if (that.hasClass(settings.user_prefix + suffix)) { that.addClass(settings.prefix + suffix); } - that.find('*').each(function () { + that.find('.' + settings.user_prefix + suffix).each(function () { var here = $(this); - if (here.hasClass(settings.user_prefix + suffix)) { - here.addClass(settings.prefix + suffix); - } + here.addClass(settings.prefix + suffix); }); }); });