From 60a708f0da84025bb14eaf8ef667017c0b564736 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 10 Oct 2024 11:21:32 +0800 Subject: [PATCH] bugfix --- bricks/video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bricks/video.js b/bricks/video.js index 8d13733..5ea7fc7 100755 --- a/bricks/video.js +++ b/bricks/video.js @@ -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(); }