Improve warning about parenting for WC widgets into legacy widgets

This commit is contained in:
nathan 2021-11-18 14:34:13 -07:00
parent b91e1d8a5f
commit 7831529ecb

View File

@ -293,7 +293,8 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
{
// Warn about it. This slows down loading, as it requires a second pass (loadingFinished) to get the child
// properly added.
console.warn("Legacy widget " + this.getType() + "[#" + this.options.id + "] could not handle adding a child. ")
console.warn("Legacy widget " + this.getType() + "[#" + this.options.id + "] could not handle adding a child (" +
_node.getType() + (_node.id ? "#" + _node.id : "") + ")");
}
}
}