proper component check at m()
This commit is contained in:
parent
03c6188989
commit
8d14e811f9
2 changed files with 29 additions and 1 deletions
|
|
@ -152,7 +152,7 @@
|
|||
args[i - 1] = arguments[i]
|
||||
}
|
||||
|
||||
if (isObject(tag)) return parameterize(tag, args)
|
||||
if (tag && isFunction(tag.view)) return parameterize(tag, args)
|
||||
|
||||
if (!isString(tag)) {
|
||||
throw new Error("selector in m(selector, attrs, children) should " +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue