empty method

void empty()

The Selection.empty() method removes all ranges from the selection, leaving the Selection.anchorNode and Selection.focusNode properties equal to null and nothing selected. When this method is called, a Document/selectionchange_event event is fired at the document.

Note: This method is an alias for the Selection.removeAllRanges method.

Implementation

external void empty();