Changelog History
-
v3.0.1 Changes
June 11, 2018- โ Added support for string parameter to
Countable#count
. You can now pass a single string instead of an element or a list of elements as the first parameter, e.g.Countable.count('hello world', callback)
. - ๐ Improve documentation.
- โ Added support for string parameter to
-
v3.0.0 Changes
July 13, 2017Countable::on
andCountable::off
replaceCountable::live
andCountable::die
. The new methods work exactly the same, apart from the name change.๐
Countable::once
has been removed. The method is now available exclusively asCountable::count
.Countable::enabled
now accepts either single elements or lists of elements. When a list is passed, the validation checks if all elements have the Countable functionality.๐ Options have been simplified. Support for
ignoreReturns
andignoreZeroWidthSpace
has been removed in favour of a more generalignore
option, which is an array of characters that should be ignored.โ Added a minified version.
โ Removed legacy support. Countable now uses things like
let
andconst
and expects ES5 methods to be present. This mainly drops support for IE before version 11.โฌ๏ธ Reduced file size by almost 25%.
-
v2.1.1 Changes
May 01, 2015- ๐ Fixes a bug where IE9 would not react to DELETE, BACKSPACE and CUT commands.
- ๐ Fixes a bug where Countable could not be concatenated with other files.
-
v2.1.0 Changes
November 06, 2014- Sentence counting has been added. The number of sentences (
sentences
) can be accessed as part of the counter object. Countable.once
is now aliased asCountable.count
- 0๏ธโฃ Zero-width characters are now ignored by default. This can be changed using the
ignoreZeroWidth
option.
- Sentence counting has been added. The number of sentences (
-
v2.0.2 Changes
August 14, 2014- โช Returns are counted as part of the
all
property. A new optionignoreReturns
was added to restore the old behaviour.
- โช Returns are counted as part of the
-
v2.0.1 Changes
August 14, 2014- Missing parameter in
Countable.once
. (Thanks to MrOPR)
- Missing parameter in
-
v2.0.0 Changes
August 14, 2014- โฌ๏ธ Countable has a new Syntax. You can now use
Countable.live
,Countable.once
,Countable.die
andCountable.enabled
. Notes on upgrading is provided in the README. - Countable can now work on multiple elements with one function call.
- Prevent a XSS bug. (Thanks to Rob--W)
- โฌ๏ธ Countable has a new Syntax. You can now use
-
v1.4.2 Changes
August 14, 2014- ๐ Fix a bug where options wouldn't be applied correctly.
-
v1.4.1 Changes
August 14, 2014- โ Added option to execute the callback only once.
-
v1.4.0 Changes
August 14, 2014- ๐ Allow for an options object as the third parameter.