Closure Library API Documentation
Go to class or file:
dom.pattern.callback.Counter
Extends
Callback class for counting matches.
Useful links
Source Code
Git
Inheritance
goog.dom.pattern.callback.Counter
Constructor
goog.dom.pattern.callback.Counter(
)
Instance Methods
Public
Protected
Private
Defined in
goog.dom.pattern.callback.Counter
getCallback
()
⇒
!
Function
Get a bound callback function that is suitable as a callback for
goog.dom.pattern.Matcher
.
Returns:
!
Function
A callback function.
code »
reset
()
Reset the counter.
code »
Instance Properties
Defined in
goog.dom.pattern.callback.Counter
callback_
:
The callback function. Suitable as a callback for
goog.dom.pattern.Matcher
.
Code »
count
:
The count of objects matched so far.
Code »
Package dom.pattern.callback
Package Reference