mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-24 02:36:00 +00:00
Clean up main-window.js before final refactor (#169)
This commit is contained in:
parent
75a4cd1696
commit
3d767ab054
1 changed files with 3 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue