Skip to content

Commit

Permalink
fix(BlockVideoOembed): substitute deprecated selector (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
MyEmpireOfDuctTape committed May 20, 2020
1 parent d298026 commit 0338027
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Components/BlockVideoOembed/script.js
Expand Up @@ -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 () {
Expand All @@ -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 () {
Expand Down

0 comments on commit 0338027

Please sign in to comment.