make eslint happy

pull/3030/head
mrkishi 6 years ago committed by Conduitry
parent 07f65c0e52
commit d4db3ed936

@ -610,7 +610,7 @@ export default class Element extends Node {
} else if ( } else if (
name === 'text' || name === 'text' ||
name === 'html' name === 'html'
){ ) {
const contenteditable = this.attributes.find( const contenteditable = this.attributes.find(
(attribute: Attribute) => attribute.name === 'contenteditable' (attribute: Attribute) => attribute.name === 'contenteditable'
); );

@ -151,12 +151,12 @@ export default function(node: Element, renderer: Renderer, options: RenderOption
if (name === 'group') { if (name === 'group') {
// TODO server-render group bindings // TODO server-render group bindings
} else if (contenteditable && (name === 'text' || name === 'html')) { } else if (contenteditable && (name === 'text' || name === 'html')) {
const snippet = snip(expression) const snippet = snip(expression);
if (name == 'text') { if (name == 'text') {
node_contents = '${@escape(' + snippet + ')}' node_contents = '${@escape(' + snippet + ')}';
} else { } else {
// Do not escape HTML content // Do not escape HTML content
node_contents = '${' + snippet + '}' node_contents = '${' + snippet + '}';
} }
} else if (binding.name === 'value' && node.name === 'textarea') { } else if (binding.name === 'value' && node.name === 'textarea') {
const snippet = snip(expression); const snippet = snip(expression);

Loading…
Cancel
Save