If or not if?

pull/3024/head
qintarp 6 years ago
parent 0a119d3e27
commit 4b9aaabec1

@ -12,7 +12,7 @@ export default class Text extends Node {
super(component, parent, scope, info);
this.data = info.data;
if (!component.component_options.preserveWhitespace) {
let node = parent;
while (node) {
if (node.type === 'Element' && node.name === 'pre') {
@ -24,3 +24,4 @@ export default class Text extends Node {
}
}
}

Loading…
Cancel
Save