Merge pull request #38 from emilbayes/patch-1

Fix #37 `rootId` should clear if only `opts` is passed
This commit is contained in:
Yoshua Wuyts
2016-06-04 15:54:55 +02:00
+4 -1
View File
@@ -52,7 +52,10 @@ function choo () {
// start the application
// (str?, obj?) -> DOMNode
function start (rootId, opts) {
if (!opts) opts = rootId
if (!opts) {
opts = rootId
rootId = null
}
opts = opts || {}
const name = opts.name || 'choo'
const initialState = {}