@aurelia/jit-html
Advanced tools
Comparing version 0.8.0-dev.202007041536 to 0.8.0-dev.202007050834
@@ -83,3 +83,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
const binder = new TemplateBinder(dom, resources, attrParser, exprParser, attrSyntaxModifier); | ||
const template = factory.createTemplate(definition.template); | ||
const template = definition.enhance === true | ||
? definition.template | ||
: factory.createTemplate(definition.template); | ||
processLocalTemplates(template, definition, context, dom, this.logger); | ||
@@ -86,0 +88,0 @@ const surrogate = binder.bind(template); |
@@ -15,3 +15,3 @@ import { IAttributeParser, ResourceModel } from '@aurelia/jit'; | ||
constructor(dom: IDOM, resources: ResourceModel, attrParser: IAttributeParser, exprParser: IExpressionParser, attrSyntaxTransformer: IAttrSyntaxTransformer); | ||
bind(node: HTMLTemplateElement): PlainElementSymbol; | ||
bind(node: HTMLElement): PlainElementSymbol; | ||
private bindManifest; | ||
@@ -18,0 +18,0 @@ private bindLetElement; |
@@ -94,3 +94,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
const binder = new template_binder_1.TemplateBinder(dom, resources, attrParser, exprParser, attrSyntaxModifier); | ||
const template = factory.createTemplate(definition.template); | ||
const template = definition.enhance === true | ||
? definition.template | ||
: factory.createTemplate(definition.template); | ||
processLocalTemplates(template, definition, context, dom, this.logger); | ||
@@ -97,0 +99,0 @@ const surrogate = binder.bind(template); |
{ | ||
"name": "@aurelia/jit-html", | ||
"version": "0.8.0-dev.202007041536", | ||
"version": "0.8.0-dev.202007050834", | ||
"main": "dist/umd/index.js", | ||
@@ -37,8 +37,8 @@ "module": "dist/esnext/index.js", | ||
"dependencies": { | ||
"@aurelia/jit": "^0.8.0-dev.202007041536", | ||
"@aurelia/kernel": "^0.8.0-dev.202007041536", | ||
"@aurelia/metadata": "^0.8.0-dev.202007041536", | ||
"@aurelia/runtime": "^0.8.0-dev.202007041536", | ||
"@aurelia/runtime-html": "^0.8.0-dev.202007041536", | ||
"@aurelia/scheduler": "^0.8.0-dev.202007041536" | ||
"@aurelia/jit": "^0.8.0-dev.202007050834", | ||
"@aurelia/kernel": "^0.8.0-dev.202007050834", | ||
"@aurelia/metadata": "^0.8.0-dev.202007050834", | ||
"@aurelia/runtime": "^0.8.0-dev.202007050834", | ||
"@aurelia/runtime-html": "^0.8.0-dev.202007050834", | ||
"@aurelia/scheduler": "^0.8.0-dev.202007050834" | ||
}, | ||
@@ -48,3 +48,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "9d406495e7f8b3d25d19e01a4a3c17eec9d6ce60" | ||
"gitHead": "e821ae0d7c57feb1e487db1625c928586902d889" | ||
} |
@@ -151,3 +151,3 @@ /* eslint-disable compat/compat */ | ||
public bind(node: HTMLTemplateElement): PlainElementSymbol { | ||
public bind(node: HTMLElement): PlainElementSymbol { | ||
const surrogate = new PlainElementSymbol(this.dom, node); | ||
@@ -154,0 +154,0 @@ |
@@ -142,4 +142,8 @@ import { | ||
const template = factory.createTemplate(definition.template) as HTMLTemplateElement; | ||
const template = definition.enhance === true | ||
? definition.template as HTMLElement | ||
: factory.createTemplate(definition.template) as HTMLTemplateElement; | ||
processLocalTemplates(template, definition, context, dom, this.logger); | ||
const surrogate = binder.bind(template); | ||
@@ -146,0 +150,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
349392
5064