-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onSuccess / onFailure callbacks? #46
Comments
PS looks like it is going to be sg else, as the element exists when I console log it :P |
Hmmm, occasionally the replacement is too slow, and when I try to show a qtip2 on the replaced and wrapped element it is not yet ready by the time I init the qtip in the next line...Maybe an onSuccess event would be great after all. :) |
I'd love to be able to get a count of how many replacements happened once my script is done. |
@giorgio79 @jkupczak Sounds like a reasonable feature. For now, FWIW, you can discern the number of matches via the reverts array, e.g. var f = findAndReplaceDOMText(...);
console.log(f.reverts.length); // number of reverts will always === number of matches |
Hello,
I would like to execute javascript after the element is highlighted, and it looks like js that comes right after findAndReplaceDOMText does not yet find the added element. Any tips? I am trying to add a qtip on the highlighted element.
The text was updated successfully, but these errors were encountered: