Merge pull request #10848 from jcfranco/maquette/add-projector-detach

[maquette] Add Projector#detach.
This commit is contained in:
Ryan Cavanaugh
2016-08-30 20:22:26 -07:00
committed by GitHub

View File

@@ -325,6 +325,14 @@ declare namespace maquette {
* @param {function} renderMaquetteFunction - Function with zero arguments that returns a {@link VNode} tree.
*/
append(parentNode: Element, renderMaquetteFunction: () => VNode): void;
/**
* Stops running the `renderMaquetteFunction` to update the DOM. The `renderMaquetteFunction` must have been
* registered using [[append]], [[merge]], [[insertBefore]] or [[replace]].
*
* @returns The [[Projection]] which was created using this `renderMaquetteFunction`.
* The [[Projection]] contains a reference to the DOM Node that was rendered.
*/
detach(renderMaquetteFunction: () => VNode): Projection;
/**
* Scans the document for `<script>` tags with `type="text/hyperscript"`.
* The content of these scripts are registered as `renderMaquette` functions.