Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for naming the rootId with no options #52

Merged
merged 1 commit into from
Jun 19, 2016

Conversation

toddself
Copy link
Contributor

@toddself toddself commented Jun 19, 2016

Right now if you want to name your rootId something different, but don't pass
in any options, it doesn't change the name of your rootId (see confusion in
github #49.)

This would allow someone to use

const app = choo()
app.start('myRootNode')

Rather than having to use

const app = choo()
app.start('myRootNode', {name: 'myRootNode'})

Right now if you want to name your rootId something different, but don't pass
in any options, it doesn't change the name of your rootId (see confusion in
github choojs#49.

This would allow someone to use

```js
const app = choo()
app.start('myRootNode')
```

Rather than having to use

```js
const app = choo()
app.start('myRootNode', {name: 'myRootNode'})
```
@yoshuawuyts
Copy link
Member

ahh dammit - great catch!

@yoshuawuyts yoshuawuyts merged commit 8787178 into choojs:master Jun 19, 2016
@yoshuawuyts
Copy link
Member

released as v2.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants