Commit 0ad6ce49 authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Add missing comments in selection-observer

parent 9f6e7cf1
......@@ -10,7 +10,12 @@ import { computeAnchorPositions } from './util/buckets';
type HostRPC = PortRPC<HostToGuestEvent, GuestToHostEvent>;
export type BucketBarClientOptions = {
/**
* The scrollable container element for the document content. All the highlights
* that the bucket bar's buckets point at should be contained within this element.
*/
contentContainer: Element;
hostRPC: HostRPC;
};
......
......@@ -19,6 +19,7 @@ export function selectedRange(document: Document): Range | null {
* An observer that watches for and buffers changes to the document's current selection.
*/
export class SelectionObserver {
/** Tracks the timeout ID of the last scheduled callback */
private _pendingCallback: number | null;
private _document: Document;
private _listeners: ListenerCollection;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment