Objectgoog.Disposable
goog.dom.SavedRange
goog.dom.SavedCaretRange
range
:
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:
Returns:
The adjusted range, if opt_range was provided.
|
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:
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:
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:
The restored range.
|
code » | ||
Internal method to restore the saved range.
Returns:
The restored range.
|
code » |
![]()
No description.
|
code » | |
![]()
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. For example:
mypackage.MyClass = function() { goog.Disposable.call(this); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { mypackage.MyClass.superClass_.disposeInternal.call(this); // Dispose logic specific to MyClass. ... }; |
code » | |
No description.
Returns:
Whether the object has been disposed of.
|
code » | |
No description.
Returns:
Whether the object has been disposed of.
|
code » |
![]()
A regex that will match all saved range carets in a string.
|
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 » |