ciromattia/jquery.counterup

callback bug on same class

johnnyxlemonade opened this issue · 0 comments

imagine that.
we have multiple element with same class, callback execute code on every code completion.

Example
After finished "counterUp", wanna to add a character to the end of string, ex
image

BUT
have 2 dom element with same classes ".counter", what we gain?
image

HOTFIX

return this.each(function (objectIndex, objectDom) {}

image

plugin init
image

AFTER HOTFIX
image