From 6f9a4864e9aa040fd731eeec28ddd398bbde8265 Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond Date: Wed, 16 Jan 2019 19:59:51 -0500 Subject: [PATCH] Fix typo. --- src/io/bt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/bt.js b/src/io/bt.js index 8091bed2..5df40f43 100644 --- a/src/io/bt.js +++ b/src/io/bt.js @@ -21,7 +21,7 @@ class BT extends JSONRPCWebSocket { this._ws = ws; this._ws.onopen = this.requestPeripheral.bind(this); // only call request peripheral after socket opens this._ws.onerror = this._handleRequestError.bind(this, 'ws onerror'); - this._ws.onclose = this._handleDisconnectError.bind(this, 'ws onclose'); + this._ws.onclose = this.handleDisconnectError.bind(this, 'ws onclose'); this._availablePeripherals = {}; this._connectCallback = connectCallback;