Merge pull request #52 from toddself/accept-name

Allow for naming the rootId with no options
This commit is contained in:
Yoshua Wuyts
2016-06-19 22:15:32 +02:00
committed by GitHub
+1 -1
View File
@@ -54,7 +54,7 @@ function choo () {
// start the application
// (str?, obj?) -> DOMNode
function start (rootId, opts) {
if (!opts) {
if (!opts && typeof rootId !== 'string') {
opts = rootId
rootId = null
}