From bb5d042db53f877786ea9ea5fcf897bf4c8f31f9 Mon Sep 17 00:00:00 2001 From: e7d Date: Sun, 14 May 2017 14:24:47 +0200 Subject: [PATCH] simplified update status method name --- js/gamepad.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/gamepad.js b/js/gamepad.js index bf86e1d..fab06ec 100644 --- a/js/gamepad.js +++ b/js/gamepad.js @@ -280,18 +280,18 @@ class Gamepad { } // enqueue the initial display refresh - this.updateVisualStatus(); + this.updateStatus(); }); } - updateVisualStatus() { + updateStatus() { // ensure that a gamepad is currently active if (!this.activeGamepad) { return; } // enqueue the next refresh right away - this.rAF(this.updateVisualStatus.bind(this)); + this.rAF(this.updateStatus.bind(this)); // load latest gamepad data this.refreshGamepads();