mirror of
https://github.com/fergalmoran/dss.git
synced 2026-03-26 15:37:18 +00:00
Stop playing on mix change
This commit is contained in:
@@ -24,11 +24,10 @@ define ['marionette', 'vent', 'models/mix/mixCollection', 'views/mix/mixItemView
|
||||
|
||||
mixPlay: (model) ->
|
||||
console.log "MixListView: mixPlay"
|
||||
"""
|
||||
|
||||
if currentMix != -1
|
||||
v = @children.findByModelCid(currentMix)
|
||||
v.mixPause()
|
||||
"""
|
||||
v.mixPause(v.model)
|
||||
currentMix = model.cid
|
||||
return
|
||||
|
||||
|
||||
@@ -42,9 +42,12 @@
|
||||
};
|
||||
|
||||
MixListView.prototype.mixPlay = function(model) {
|
||||
var v;
|
||||
console.log("MixListView: mixPlay");
|
||||
"if currentMix != -1\n v = @children.findByModelCid(currentMix)\n v.mixPause()";
|
||||
|
||||
if (currentMix !== -1) {
|
||||
v = this.children.findByModelCid(currentMix);
|
||||
v.mixPause(v.model);
|
||||
}
|
||||
currentMix = model.cid;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user