Local
interface Local <T> {
get(node: Element): T | undefined;
remove(node: Element): boolean;
set(node: Element, value: T): Element;
toString(): string;
}§Methods
§
get(node: Element): T | undefined
[src]Retrieves a local variable stored on the node (or one of its parents).
@param node
A node element.
§
remove(node: Element): boolean
[src]Deletes the value associated with the given node. Values stored on ancestors are not affected, meaning that child nodes will still see inherited values.
This function returns true if there was a value stored directly on the node, and false otherwise.
@param node
A node element.