Skip to content

Commit

Permalink
Remove template literal to support Internet Explorer (#12)
Browse files Browse the repository at this point in the history
* Remove template literal to support Internet Explorer

* UPass single string to assert.ok
  • Loading branch information
downeyfe authored and goto-bus-stop committed Jan 13, 2020
1 parent 16b1a3e commit 3466498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

if (this._submachine && Object.keys(this.transitions).indexOf(nextState) !== -1) {
this._unregister()
Expand Down

0 comments on commit 3466498

Please sign in to comment.