callback.js
No description.

File Location

/goog/dom/pattern/callback/callback.js


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 »

Directory callback

File Reference