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:
parent
628af95325
commit
a4731d4af2
6 changed files with 162 additions and 123 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue