mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Don't lookup tag def for dynamic tags
This commit is contained in:
parent
c29f84d4ae
commit
92dccd4978
@ -228,7 +228,7 @@ class CompileContext {
|
|||||||
var node;
|
var node;
|
||||||
var elNode = builder.htmlElement(elDef);
|
var elNode = builder.htmlElement(elDef);
|
||||||
var taglibLookup = this.taglibLookup;
|
var taglibLookup = this.taglibLookup;
|
||||||
var tagDef = taglibLookup.getTag(tagName);
|
var tagDef = typeof tagName === 'string' ? taglibLookup.getTag(tagName) : null;
|
||||||
if (tagDef) {
|
if (tagDef) {
|
||||||
var nodeFactoryFunc = tagDef.getNodeFactory();
|
var nodeFactoryFunc = tagDef.getNodeFactory();
|
||||||
if (nodeFactoryFunc) {
|
if (nodeFactoryFunc) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user