lit-element
Advanced tools
Comparing version 0.4.8 to 0.4.9
@@ -26,3 +26,3 @@ import { svg, TemplateResult } from '../lit-html/lit-html.js'; | ||
refresh(callback?: () => any): Promise<void>; | ||
render(): TemplateResult; | ||
render(data?: object): TemplateResult; | ||
readonly $: HTMLCollectionByID; | ||
@@ -29,0 +29,0 @@ accessKey: string; |
@@ -25,3 +25,3 @@ import { html, svg, TemplateResult } from '../lit-html/lit-html.js'; | ||
refresh(callback?: () => any): Promise<void>; | ||
render(): TemplateResult; | ||
render(data?: object): TemplateResult; | ||
readonly $: HTMLCollectionByID; | ||
@@ -28,0 +28,0 @@ accessKey: string; |
@@ -67,3 +67,3 @@ import { TemplateResult, TemplateFactory } from '../lit-html/lit-html.js'; | ||
refresh(callback?: () => any): Promise<void>; | ||
render(): TemplateResult; | ||
render(data?: object): TemplateResult; | ||
readonly $: HTMLCollectionByID; | ||
@@ -70,0 +70,0 @@ accessKey: string; |
@@ -130,3 +130,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
*/ | ||
renderFunction(this.render(), this.shadowRoot); | ||
renderFunction(this.render(Object.assign({}, this.__data)), this.shadowRoot); | ||
} | ||
@@ -224,3 +224,3 @@ /** | ||
postponedRender() { | ||
renderFunction(this.render(), this.shadowRoot); | ||
renderFunction(this.render(Object.assign({}, this.__data)), this.shadowRoot); | ||
for (let callback of this.__renderCallbacks) { | ||
@@ -270,3 +270,3 @@ callback(); | ||
*/ | ||
render() { | ||
render(data) { | ||
return html ``; | ||
@@ -273,0 +273,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"name": "lit-element", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"description": "Implements lit-html via a LitElement class. Made for custom Elements.", | ||
@@ -9,0 +9,0 @@ "main": "lit-element.js", |
@@ -170,3 +170,3 @@ import { TemplateResult, TemplateFactory } from '../node_modules/lit-html/lit-html.js'; | ||
*/ | ||
renderFunction(this.render(), this.shadowRoot) | ||
renderFunction(this.render({...this.__data}), this.shadowRoot) | ||
} | ||
@@ -272,3 +272,3 @@ | ||
postponedRender() { | ||
renderFunction(this.render(), this.shadowRoot) | ||
renderFunction(this.render({...this.__data}), this.shadowRoot) | ||
@@ -320,3 +320,3 @@ for (let callback of this.__renderCallbacks) { | ||
*/ | ||
render(): TemplateResult { | ||
render(data?: object): TemplateResult { | ||
return html``; | ||
@@ -323,0 +323,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142933