lpinca/binb — Issue #4: Access to global variable
Author: k0nserv
Created: 2012-03-08 14:20:31+00:00
State: open

Hey Lupin.
I just tried something out.
Turns out it's pretty easy to do this:
App.socket.removeListener('loadtrack');
App.socket.on('loadtrack', function(data){
//Save previewUrl along side artist name and song name
App.loadTrack(data);
});

You should wrap the app code in an anonymous function to combat this.