From 3466498a1e7ed892fde6b57e7738de638deca7cc Mon Sep 17 00:00:00 2001 From: Frances Downey Date: Mon, 13 Jan 2020 15:13:36 +0000 Subject: [PATCH] Remove template literal to support Internet Explorer (#12) * Remove template literal to support Internet Explorer * UPass single string to assert.ok --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 191dc6d..f4e14e1 100644 --- a/index.js +++ b/index.js @@ -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()