Confirmed users
483
edits
Line 226: | Line 226: | ||
let musicPort = ports[0]; | let musicPort = ports[0]; | ||
musicPort.onstart(function() { | musicPort.onstart((function() { | ||
this.enableControlButtons(); | this.enableControlButtons(); | ||
this.madeUpPlayButton.onclick = function() { | this.madeUpPlayButton.onclick = function() { | ||
Line 243: | Line 243: | ||
}); | }); | ||
}; | }; | ||
}); | }).bind(this)); | ||
musicPort.onstop(function() { | musicPort.onstop((function() { | ||
this.disableControlButtons(); | this.disableControlButtons(); | ||
}); | }).bind(this)); | ||
}, function onConnectionRejected(reason) { | }, function onConnectionRejected(reason) { | ||
... | ... |