diff --git a/dist/morphlex.d.ts b/dist/morphlex.d.ts index 4ac1b25..8cd6f4d 100644 --- a/dist/morphlex.d.ts +++ b/dist/morphlex.d.ts @@ -13,7 +13,7 @@ interface Options { afterPropertyUpdated?: (node: Node, propertyName: PropertyKey, previousValue: unknown) => void; } export declare function morph(node: ChildNode, reference: ChildNode, options?: Options): void; -export declare function morphInner(node: Element, reference: Element, options?: Options): void; +export declare function morphInner(element: Element, reference: Element, options?: Options): void; export declare function morphFromString(node: ChildNode, reference: string, options?: Options): void; -export declare function morphInnerFromString(node: Element, reference: string, options?: Options): void; +export declare function morphInnerFromString(element: Element, reference: string, options?: Options): void; export {}; diff --git a/dist/morphlex.js b/dist/morphlex.js index 0b3d98f..b786edd 100644 --- a/dist/morphlex.js +++ b/dist/morphlex.js @@ -1,14 +1,14 @@ export function morph(node, reference, options = {}) { new Morph(options).morph([node, reference]); } -export function morphInner(node, reference, options = {}) { - new Morph(options).morphInner([node, reference]); +export function morphInner(element, reference, options = {}) { + new Morph(options).morphInner([element, reference]); } export function morphFromString(node, reference, options = {}) { morph(node, parseChildNodeFromString(reference), options); } -export function morphInnerFromString(node, reference, options = {}) { - morphInner(node, parseElementFromString(reference), options); +export function morphInnerFromString(element, reference, options = {}) { + morphInner(element, parseElementFromString(reference), options); } function parseElementFromString(string) { const node = parseChildNodeFromString(string); diff --git a/src/morphlex.ts b/src/morphlex.ts index 636a0c7..098beb2 100644 --- a/src/morphlex.ts +++ b/src/morphlex.ts @@ -53,16 +53,16 @@ export function morph(node: ChildNode, reference: ChildNode, options: Options = new Morph(options).morph([node, reference]); } -export function morphInner(node: Element, reference: Element, options: Options = {}): void { - new Morph(options).morphInner([node, reference]); +export function morphInner(element: Element, reference: Element, options: Options = {}): void { + new Morph(options).morphInner([element, reference]); } export function morphFromString(node: ChildNode, reference: string, options: Options = {}): void { morph(node, parseChildNodeFromString(reference), options); } -export function morphInnerFromString(node: Element, reference: string, options: Options = {}): void { - morphInner(node, parseElementFromString(reference), options); +export function morphInnerFromString(element: Element, reference: string, options: Options = {}): void { + morphInner(element, parseElementFromString(reference), options); } function parseElementFromString(string: string): Element {