fixed CompoPlayer controls init bug
This commit is contained in:
@@ -663,17 +663,18 @@
|
|||||||
this.$composer = $('.composition_ui .composer');
|
this.$composer = $('.composition_ui .composer');
|
||||||
this.$compo = $('.composition_ui .composer .composition');
|
this.$compo = $('.composition_ui .composer .composition');
|
||||||
this.$controls = $('.composition_ui .composer .compo-player-controls');
|
this.$controls = $('.composition_ui .composer .compo-player-controls');
|
||||||
this.$previous = $('<div>').addClass('previous')
|
if(!this.$controls.is('.ready')){
|
||||||
.on('click', this.prev.bind(this))
|
this.$previous = $('<div>').addClass('previous')
|
||||||
.appendTo(this.$controls);
|
.on('click', this.prev.bind(this))
|
||||||
this.$playpause = $('<div>').addClass('play-pause')
|
.appendTo(this.$controls);
|
||||||
.on('click', this.togglePlayPause.bind(this))
|
this.$playpause = $('<div>').addClass('play-pause')
|
||||||
.appendTo(this.$controls);
|
.on('click', this.togglePlayPause.bind(this))
|
||||||
this.$next = $('<div>').addClass('next')
|
.appendTo(this.$controls);
|
||||||
.on('click', this.next.bind(this))
|
this.$next = $('<div>').addClass('next')
|
||||||
.appendTo(this.$controls);
|
.on('click', this.next.bind(this))
|
||||||
// this.$playpause = $('.compo-player-controls', this.$composer)
|
.appendTo(this.$controls);
|
||||||
// .on('click', this.togglePlayPause.bind(this));
|
this.$controls.addClass('ready');
|
||||||
|
}
|
||||||
this.refresh();
|
this.refresh();
|
||||||
},
|
},
|
||||||
refresh(){
|
refresh(){
|
||||||
|
|||||||
@@ -663,17 +663,18 @@
|
|||||||
this.$composer = $('.composition_ui .composer');
|
this.$composer = $('.composition_ui .composer');
|
||||||
this.$compo = $('.composition_ui .composer .composition');
|
this.$compo = $('.composition_ui .composer .composition');
|
||||||
this.$controls = $('.composition_ui .composer .compo-player-controls');
|
this.$controls = $('.composition_ui .composer .compo-player-controls');
|
||||||
this.$previous = $('<div>').addClass('previous')
|
if(!this.$controls.is('.ready')){
|
||||||
.on('click', this.prev.bind(this))
|
this.$previous = $('<div>').addClass('previous')
|
||||||
.appendTo(this.$controls);
|
.on('click', this.prev.bind(this))
|
||||||
this.$playpause = $('<div>').addClass('play-pause')
|
.appendTo(this.$controls);
|
||||||
.on('click', this.togglePlayPause.bind(this))
|
this.$playpause = $('<div>').addClass('play-pause')
|
||||||
.appendTo(this.$controls);
|
.on('click', this.togglePlayPause.bind(this))
|
||||||
this.$next = $('<div>').addClass('next')
|
.appendTo(this.$controls);
|
||||||
.on('click', this.next.bind(this))
|
this.$next = $('<div>').addClass('next')
|
||||||
.appendTo(this.$controls);
|
.on('click', this.next.bind(this))
|
||||||
// this.$playpause = $('.compo-player-controls', this.$composer)
|
.appendTo(this.$controls);
|
||||||
// .on('click', this.togglePlayPause.bind(this));
|
this.$controls.addClass('ready');
|
||||||
|
}
|
||||||
this.refresh();
|
this.refresh();
|
||||||
},
|
},
|
||||||
refresh(){
|
refresh(){
|
||||||
|
|||||||
Reference in New Issue
Block a user