CC-2301 : automatically updating the fadein/fadeout for a track in the fadein/fadeout states.

Can enable states on a per track basis.
This commit is contained in:
Naomi 2013-04-26 15:57:02 -04:00
parent 628af95325
commit a4731d4af2
6 changed files with 162 additions and 123 deletions

View file

@ -49,7 +49,6 @@ PlaylistEditor.prototype.init = function(tracks) {
this.trackEditors.push(trackEditor);
fragment.appendChild(trackElem);
audioControls.on("changestate", "onStateChange", trackEditor);
audioControls.on("trackedit", "onTrackEdit", trackEditor);
audioControls.on("changeresolution", "onResolutionChange", trackEditor);
@ -127,10 +126,12 @@ PlaylistEditor.prototype.onStateChange = function() {
editors = this.trackEditors,
i,
len,
editor;
editor,
state = this.config.getState();
for(i = 0, len = editors.length; i < len; i++) {
editors[i].deactivate();
editors[i].setState(state);
}
};