equatable-selection

Observes and compares text selections


Keywords
util, selection, text, word, character, count
License
MIT
Install
bower install equatable-selection

Documentation

Build status Bower version

EquatableSelection()

An object for observing and comparing current text selections.

When instantiated, captures the current selection and computes a count of words and characters selected.

May be compared for equality against other EquatableSelection instances.

Should be treated as immutable.

EquatableSelection.isEqual(other:EquatableSelection)

Return true if two EquatableSelection objects are equal, false otherwise

Development

Generate documentation

$ npm install -g dox
$ ./generate-docs > README.md

Deploy

Where X.Y.Z is the new version number:

$ git tag -a vX.Y.Z
$ git push --tags