dom.pattern.callback

Classes

goog.dom.pattern.callback.Counter
Callback class for counting matches.
goog.dom.pattern.callback.Test
Callback class for testing for at least one match.

Public Protected Private

Global Functions

goog.dom.pattern.callback.flattenElement(nodeposition) boolean
Callback function for use in goog.dom.pattern.Matcher.addPattern that removes the matched node from the tree and replaces it with its children. Should be used in conjunction with a goog.dom.pattern.StartTag pattern.
Arguments:
node : Element
The node matched by the pattern.
position : goog.dom.TagIterator
The position where the match finished.
Returns: boolean  Returns true to indicate tree changes were made.
code »
goog.dom.pattern.callback.removeNode(nodeposition) boolean
Callback function for use in goog.dom.pattern.Matcher.addPattern that removes the matched node from the tree. Should be used in conjunciton with a goog.dom.pattern.StartTag pattern.
Arguments:
node : Node
The node matched by the pattern.
position : goog.dom.TagIterator
The position where the match finished.
Returns: boolean  Returns true to indicate tree changes were made.
code »

Package dom.pattern

Package Reference