Merge branch 'master' into hash
This commit is contained in:
@@ -33,6 +33,11 @@
|
||||
<img src="https://img.shields.io/codecov/c/github/yoshuawuyts/choo/master.svg?style=flat-square"
|
||||
alt="Test Coverage" />
|
||||
</a>
|
||||
<!-- Downloads -->
|
||||
<a href="https://npmjs.org/package/choo">
|
||||
<img src="https://img.shields.io/npm/dm/choo.svg?style=flat-square"
|
||||
alt="Downloads" />
|
||||
</a>
|
||||
<!-- Standard -->
|
||||
<a href="https://codecov.io/github/yoshuawuyts/choo">
|
||||
<img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square"
|
||||
|
||||
@@ -54,7 +54,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 = {}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "choo",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.6",
|
||||
"description": "A 7kb framework for creating sturdy frontend applications",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user