Skip to content

Commit

Permalink
Point out it should be a single DOM node. (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
perguth authored and goto-bus-stop committed Nov 12, 2019
1 parent b6a2d8c commit edb5114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Nanocomponent.prototype._handleRender = function (args) {
var el = this.createElement.apply(this, args)
createElementTiming()
if (!this._rootNodeName) this._rootNodeName = el.nodeName
assert(el instanceof window.Element, 'nanocomponent: createElement should return a DOM node')
assert(el instanceof window.Element, 'nanocomponent: createElement should return a single DOM node')
assert.equal(this._rootNodeName, el.nodeName, 'nanocomponent: root node types cannot differ between re-renders')
this._arguments = args
return this._brandNode(this._ensureID(el))
Expand Down

0 comments on commit edb5114

Please sign in to comment.