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

Remove template literal to support Internet Explorer #12

Merged
merged 2 commits into from Jan 13, 2020
Merged

Remove template literal to support Internet Explorer #12

merged 2 commits into from Jan 13, 2020

Conversation

downeyfe
Copy link
Contributor

Fixes #11.

Copy link
Member

@goto-bus-stop goto-bus-stop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

index.js Outdated
@@ -23,7 +23,7 @@ Nanostate.prototype.constructor = Nanostate

Nanostate.prototype.emit = function (eventName) {
var nextState = this._next(eventName)
assert.ok(nextState, `nanostate.emit: invalid transition ${this.state} -> ${eventName}`)
assert.ok(nextState, 'nanostate.emit: invalid transition', this.state, '->', eventName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert.ok accepts a single string for the error message:

Suggested change
assert.ok(nextState, 'nanostate.emit: invalid transition', this.state, '->', eventName)
assert.ok(nextState, 'nanostate.emit: invalid transition' + this.state + '->' + eventName)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, I'll update.

Copy link
Member

@goto-bus-stop goto-bus-stop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thanks!

@goto-bus-stop goto-bus-stop merged commit 3466498 into choojs:master Jan 13, 2020
@goto-bus-stop
Copy link
Member

oh, i don't have npm publish access on this module—will publish as soon as i get it :)

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.

IE11 Support
2 participants