From 0338027dca6ed54dd96128c8e720ab6299ef30dd Mon Sep 17 00:00:00 2001 From: MyEmpireOfDuctTape <32899523+MyEmpireOfDuctTape@users.noreply.github.com> Date: Wed, 20 May 2020 17:23:37 +0200 Subject: [PATCH] fix(BlockVideoOembed): substitute deprecated selector (#244) --- Components/BlockVideoOembed/script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Components/BlockVideoOembed/script.js b/Components/BlockVideoOembed/script.js index 06beebadf..54e55fb84 100644 --- a/Components/BlockVideoOembed/script.js +++ b/Components/BlockVideoOembed/script.js @@ -18,7 +18,6 @@ class BlockVideoOembed extends window.HTMLDivElement { this.$posterImage = $('.figure-image', this) this.$videoPlayer = $('.video-player', this) this.$iframe = $('iframe', this) - this.$playButton = $('.video-playButton', this) } bindFunctions () { @@ -27,7 +26,7 @@ class BlockVideoOembed extends window.HTMLDivElement { } bindEvents () { - this.$.one('click', this.$playButton.selector, this.loadVideo) + this.$.one('click', '.video-playButton', this.loadVideo) } loadVideo () {