bugfix
This commit is contained in:
parent
9ee30fc3ea
commit
60a708f0da
@ -37,7 +37,6 @@ bricks.Video = class extends bricks.Layout {
|
||||
this.add_widget(this.video_body);
|
||||
schedule_once(this.create_player.bind(this), 0.1);
|
||||
this.hidedbtn = new bricks.Button({text:'click me'});
|
||||
this.hidedbtn.hide();
|
||||
this.hidedbtn.bind('click', this.play.bind(this));
|
||||
this.add_widget(this.hidedbtn);
|
||||
}
|
||||
@ -69,6 +68,7 @@ bricks.Video = class extends bricks.Layout {
|
||||
this.hidedbtn.dispatch('click');
|
||||
}
|
||||
play(){
|
||||
this.hidedbtn.hide();
|
||||
console.log('Video:play() called....');
|
||||
this.player.play();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user