We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
selecting(document, function(selector, otherInfos) { console.log(otherInfos.wordCount); });
I think this is useful, to avoid the programar to write more code in the callback.
It'd be something like
selecting(document, function(selector) { console.log(selector.split(' ').length); });
The first proposed solution, is so much elegant.
@EvandroLG what you think about a second parameter? Or, just transform the first parameter to a object, with a lot of helpful information.
selecting(document, function(selected) { console.log(selected.text); console.log(selected.wordCount); });
Etc... would be awesome!
The text was updated successfully, but these errors were encountered:
ebb5574
Merge pull request #17 from felquis/usefulInfo
93e5163
Add wordCount property closes #16
No branches or pull requests
I think this is useful, to avoid the programar to write more code in the callback.
It'd be something like
The first proposed solution, is so much elegant.
@EvandroLG what you think about a second parameter? Or, just transform the first parameter to a object, with a lot of helpful information.
Etc... would be awesome!
The text was updated successfully, but these errors were encountered: