Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

callback bug on same class #19

Open
johnnyxlemonade opened this issue Dec 1, 2019 · 0 comments
Open

callback bug on same class #19

johnnyxlemonade opened this issue Dec 1, 2019 · 0 comments
Labels

Comments

@johnnyxlemonade
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants