Home

Class goog.dom.NodeOffset

Object to store the offset from one node to another in a way that works on any similar DOM structure regardless of whether it is the same actual nodes.

extends goog.Disposable
Instance Method Summary
disposeInternal()

Deletes or nulls out any references to COM objects, DOM nodes, or other disposable objects. Classes that extend {@code goog.Disposable} should override this method. Not reentrant. To avoid calling it twice, it must only be called from the subclass' {@code disposeInternal} method. Everywhere else the public {@code dispose} method must be used. For example:

mypackage.MyClass = function() {
goog.base(this);
// Constructor logic specific to MyClass.
...
};
goog.inherits(mypackage.MyClass, goog.Disposable);

mypackage.MyClass.prototype.disposeInternal = function() {
goog.base(this, 'disposeInternal');
// Dispose logic specific to MyClass.
...
};

findTargetNode(?Node baseNode) ⇒ ?Node

Walk the dom and find the node relative to baseNode. Returns null on failure.

toString() ⇒ string