goog.Disposable | |
goog.dom.SavedRange | goog.Disposable |
goog.dom.SavedCaretRange | goog.dom.SavedRange |
goog.editor.range.NormalizedCaretRange_ | goog.dom.SavedCaretRange |
range
: goog.dom.AbstractRange
The range being saved.
|
Creates a caret element.
|
code » | ||
![]()
Dispose the saved range and remove the carets from the DOM.
|
code » | ||
Gets carets.
|
code » | ||
Removes the carets from the current restoration document.
Arguments:
|
code » | ||
Reconstruct the selection from the given saved range. Removes carets after
restoring the selection. If restore does not dispose this saved range, it may
only be restored a second time if innerHTML or some other mechanism is used
to restore the carets to the dom.
Returns: ?goog.dom.AbstractRange
Restored selection.
|
code » | ||
![]()
Sets the document where the range will be restored.
Arguments:
|
code » | ||
Gets the range that this SavedCaretRage represents, without selecting it
or removing the carets from the DOM.
Returns: ?goog.dom.AbstractRange
An abstract range.
|
code » |
Restores the range and by default disposes of the saved copy. Take note:
this means the by default SavedRange objects are single use objects.
Arguments:
Returns: goog.dom.AbstractRange
The restored range.
|
code » | ||
Internal method to restore the saved range.
Returns: goog.dom.AbstractRange
The restored range.
|
code » |
![]()
Invokes a callback function when this object is disposed. Callbacks are
invoked in the order in which they were added.
Arguments:
|
code » | |||
![]()
Disposes of the object. If the object hasn't already been disposed of, calls
#disposeInternal . Classes that extend goog.Disposable should
override #disposeInternal in order to delete references to COM
objects, DOM nodes, and other disposable objects. Reentrant.
Returns: void
Nothing.
|
code » | |||
![]()
Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend
goog.Disposable should
override this method.
Not reentrant. To avoid calling it twice, it must only be called from the
subclass' disposeInternal method. Everywhere else the public
dispose method must be used.
For example:
mypackage.MyClass = function() { mypackage.MyClass.base(this, 'constructor'); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { // Dispose logic specific to MyClass. ... // Call superclass's disposeInternal at the end of the subclass's, like // in C++, to avoid hard-to-catch issues. mypackage.MyClass.base(this, 'disposeInternal'); }; |
code » | |||
Use
#isDisposed instead.
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
![]()
Associates a disposable object with this object so that they will be disposed
together.
Arguments:
|
code » |
![]()
No description.
|
Code » | |
A DOM helper for storing the current document context.
|
Code » | |
![]()
The DOM id of the caret at the end of the range.
|
Code » | |
![]()
Whether the range is reversed (anchor at the end).
|
Code » | |
![]()
The DOM id of the caret at the start of the range.
|
Code » |
![]()
No description.
|
Code » |
Returns whether two strings of html are equal, ignoring any saved carets.
Thus two strings of html whose only difference is the id of their saved
carets will be considered equal, since they represent html with the
same selection.
|
code » |
![]()
A regex that will match all saved range carets in a string.
|
Code » | |
![]()
No description.
|
Code » |