remove unused code

pull/3102/head
Richard Harris 6 years ago
parent 960b548d14
commit 607d693894

@ -10,15 +10,5 @@ export default class Text extends Node {
constructor(component: Component, parent: INode, scope: TemplateScope, info: any) {
super(component, parent, scope, info);
this.data = info.data;
if (!component.component_options.preserveWhitespace && !/[\S\u00A0]/.test(info.data)) {
let node = parent;
while (node) {
if (node.type === 'Element' && node.name === 'pre') {
return;
}
node = node.parent;
}
}
}
}

Loading…
Cancel
Save