mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
Fixed walking of component root nodes
This commit is contained in:
parent
93b17c0493
commit
ba6e4bb4ed
@ -104,7 +104,7 @@ module.exports = function handleRootNodes() {
|
||||
var transformHelper = this;
|
||||
|
||||
let walker = context.createWalker({
|
||||
exit(node) {
|
||||
enter(node) {
|
||||
if (node.type === 'HtmlElement') {
|
||||
if (node.hasAttribute('w-bind')) {
|
||||
hasExplicitBind = true;
|
||||
@ -122,9 +122,9 @@ module.exports = function handleRootNodes() {
|
||||
} else if (tagName !== 'style') {
|
||||
rootNodes.push(node);
|
||||
}
|
||||
// Don't recurse into children
|
||||
walker.skip();
|
||||
}
|
||||
walker.skip();
|
||||
|
||||
return;
|
||||
} else if (node.type === 'CustomTag') {
|
||||
rootNodes.push(node);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user