From a56c6990ad60e7897b44b6ca1108efe42779422b Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Wed, 10 Jul 2019 08:42:23 -0400 Subject: [PATCH] lint --- src/compiler/compile/render_dom/wrappers/Element/Binding.ts | 3 +-- src/compiler/compile/render_dom/wrappers/Fragment.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts index b1d7b52b66..1ea65830ef 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts @@ -109,8 +109,7 @@ export default class BindingWrapper { if (parent.node.name === 'input') { const type = parent.node.get_static_attribute_value('type'); - if (type === null || type === "" || type === "text" - || type === "email" || type === "password") { + if (type === null || type === "" || type === "text" || type === "email" || type === "password") { update_conditions.push(`(${parent.var}.${this.node.name} !== ${this.snippet})`); } } diff --git a/src/compiler/compile/render_dom/wrappers/Fragment.ts b/src/compiler/compile/render_dom/wrappers/Fragment.ts index 2eadf3e915..d81bd6bcc9 100644 --- a/src/compiler/compile/render_dom/wrappers/Fragment.ts +++ b/src/compiler/compile/render_dom/wrappers/Fragment.ts @@ -17,7 +17,6 @@ import { INode } from '../../nodes/interfaces'; import Renderer from '../Renderer'; import Block from '../Block'; import { trim_start, trim_end } from '../../../utils/trim'; -import TextWrapper from './Text'; const wrappers = { AwaitBlock, @@ -103,7 +102,7 @@ export default class FragmentWrapper { // glue text nodes (which could e.g. be separated by comments) together if (last_child && last_child.node.type === 'Text') { - (last_child as TextWrapper).data = data + (last_child as TextWrapper).data; + (last_child as Text).data = data + (last_child as Text).data; continue; }