From 3f38810d64df1d151c4e73f025b2ff229b5b9c0d Mon Sep 17 00:00:00 2001 From: Emil Bay Date: Sat, 4 Jun 2016 15:48:27 +0200 Subject: [PATCH 1/4] Fix #37 `rootId` should clear if only `opts` is passed `rootId` is optional to `start`, but has lower precedence than `opts`. Currently it is not cleared when the value is passed to `opts` --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ff6b089..c19c0bd 100644 --- a/index.js +++ b/index.js @@ -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 = {} From d867a75ac4f98ab21efb5f8fbe37bc06942d2240 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Sat, 4 Jun 2016 15:55:21 +0200 Subject: [PATCH 2/4] 2.1.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d9df638..6102cf9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "choo", - "version": "2.1.4", + "version": "2.1.5", "description": "A 7kb framework for creating sturdy frontend applications", "main": "index.js", "scripts": { From c5bb46c3b593bdafa0f511a082cae245598290e3 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Sat, 4 Jun 2016 20:11:26 +0200 Subject: [PATCH 3/4] docs: add downloads --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 0f160ec..f5df7eb 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,11 @@ Test Coverage + + + Downloads + Date: Sat, 4 Jun 2016 20:11:34 +0200 Subject: [PATCH 4/4] 2.1.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6102cf9..cf7f1cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "choo", - "version": "2.1.5", + "version": "2.1.6", "description": "A 7kb framework for creating sturdy frontend applications", "main": "index.js", "scripts": {