Skip to content

Instantly share code, notes, and snippets.

var soundCloudMunchkin = {
init: function(widget){
//save a reference to the widget
soundCloudMunchkin.widget = widget;
//Bind each relevant event to the corresponding method
widget.bind(SC.Widget.Events.PLAY, function(){
soundCloudMunchkin.trackPlay();
});
widget.bind(SC.Widget.Events.PAUSE, function(){