From 3d767ab0549b78139ddcf8bfac19ee50cde1fef5 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 28 Jul 2016 09:20:54 -0700 Subject: [PATCH] Clean up main-window.js before final refactor (#169) --- js/main-window.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/js/main-window.js b/js/main-window.js index 95fdc93e..01ab49cd 100644 --- a/js/main-window.js +++ b/js/main-window.js @@ -1,24 +1,15 @@ module.exports = { init: function(winamp) { - this.winamp = winamp; this.nodes = { - visualizer: document.getElementById('visualizer'), - workIndicator: document.getElementById('work-indicator'), window: document.getElementById('main-window') }; this.handle = document.getElementById('title-bar'); this.body = this.nodes.window; - this._registerListeners(); - return this; - }, - - _registerListeners: function() { - var self = this; - - this.nodes.visualizer.onclick = function() { - self.winamp.toggleVisualizer(); + document.getElementById('visualizer').onclick = function() { + winamp.toggleVisualizer(); }; + return this; } };