update script loading

This commit is contained in:
Luke Pulverenti 2015-12-02 16:05:08 -05:00
parent 3118991c21
commit ad93f5ca7f
5 changed files with 44 additions and 231 deletions

View file

@ -171,17 +171,13 @@
.on('positionchange', onStateChanged);
}
Dashboard.ready(function () {
Logger.log('binding remotecontrols to MediaController');
Logger.log('binding remotecontrols to MediaController');
$(MediaController).on('playerchange', function () {
bindToPlayer(MediaController.getCurrentPlayer());
});
$(MediaController).on('playerchange', function () {
bindToPlayer(MediaController.getCurrentPlayer());
});
bindToPlayer(MediaController.getCurrentPlayer());
})();