From: Ben Beltran Date: Thu, 30 Mar 2017 06:57:34 +0000 (-0600) Subject: Fix linter warnings X-Git-Url: https://git.r.bdr.sh/rbdr/heart/commitdiff_plain/31d618746e16df973fc6f752b1a92707bd617f84?ds=sidebyside;hp=-c Fix linter warnings --- 31d618746e16df973fc6f752b1a92707bd617f84 diff --git a/js/lib/heart_renderer.js b/js/lib/heart_renderer.js index 356ed72..4680fb9 100644 --- a/js/lib/heart_renderer.js +++ b/js/lib/heart_renderer.js @@ -77,7 +77,6 @@ this._following = null; // The status of mouse follow. this._center = null; // The actual center this._targetHeartSize = this.heartSize; - this._ this._targetCenter = { x: 0, y: 0 @@ -254,6 +253,7 @@ // Updates a single color component. _updateColorComponent(component, delta) { + let color = Math.round(this._currentColor[component] + (delta * this._colorSpeed[component] * this._colorDirection[component])); if (color >= kColorIteratorLimit) { this._colorDirection[component] = -1; @@ -367,11 +367,13 @@ // Apply a class to show the cursor. _showCursor() { + this.canvas.classList.add('mouse-moving'); } // Remove class to hide the cursor. _hideCursor() { + this.canvas.classList.remove('mouse-moving'); } };