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
The default implementation of below does not respect the ignoreReturns: true:
ignoreReturns: true
$( window ).on('load', function() { Countable.on( document.getElementById('my_area'), counter => console.log(counter), { ignoreReturns: true } ) });
Doing so, the all property still counts returns (enter/newline)
all
Thus, we always get a wrong character count when doing this:
$( window ).on('load', function() { Countable.on( document.getElementById('my_area'), counter => document.getElementById('my_result').innerHTML = counter.all.toString(), { ignoreReturns: true } ) });
The doc clearly states that we shall use that option to Ignore returns when calculating the all property.
Ignore returns when calculating the all property.
Suggestions?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The default implementation of below does not respect the
ignoreReturns: true
:Doing so, the
all
property still counts returns (enter/newline)Thus, we always get a wrong character count when doing this:
The doc clearly states that we shall use that option to
Ignore returns when calculating the all property.
Suggestions?
The text was updated successfully, but these errors were encountered: