The goog.dom.pattern.callback.Counter Class

goog.dom.pattern.callback.Counter()

Callback class for counting matches.

.count {number}

The count of objects matched so far.

.getCallback()

Get a bound callback function that is suitable as a callback for {@link goog.dom.pattern.Matcher}.

returns {Function}
A callback function.

.reset()

Reset the counter.