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; } };