You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import INode from '../nodes/node/INode';
- import IMutationObserverInit from './IMutationObserverInit';
- import MutationRecord from './MutationRecord';
- /**
- * The MutationObserver interface provides the ability to watch for changes being made to the DOM tree.
- *
- * @see https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
- */
- export default class MutationObserver {
- private callback;
- private target;
- private listener;
- /**
- * Constructor.
- *
- * @param callback Callback.
- */
- constructor(callback: (records: MutationRecord[]) => void);
- /**
- * Starts observing.
- *
- * @param target Target.
- * @param options Options.
- */
- observe(target: INode, options: IMutationObserverInit): void;
- /**
- * Disconnects.
- */
- disconnect(): void;
- /**
- * Takes records.
- */
- takeRecords(): [];
- }
|