Skip to content

Commit

Permalink
Fixes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertPeek committed Dec 21, 2021
1 parent b88ec7a commit 431fa47
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The Background selector attribute group contains values for **_isEnabled**, **_h
No known limitations.

----------------------------
**Version number:** 2.3.10
**Version number:** 2.3.11
**Framework versions supported:** 2+
**Author / maintainer:** DeltaNet with [contributors](https://github.com/deltanet/adapt-background-selector/graphs/contributors)
**Accessibility support:** Yes
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adapt-background-selector",
"version": "2.3.10",
"version": "2.3.11",
"framework": ">=2",
"homepage": "https://github.com/deltanet/adapt-background-selector",
"issues": "https://github.com/deltanet/adapt-background-selector/issues",
Expand Down
11 changes: 4 additions & 7 deletions js/background-selector-videoView.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ define([
className: "background-selector-video",

initialize: function () {
this.render();

this.listenTo(Adapt, {
'remove': this.remove,
'popup:opened': this.popupOpened,
'popup:closed': this.popupClosed,
'pageView:ready': this.pageReady,
'device:resize': this.deviceResize
});

this.render();
},

render: function () {
Expand All @@ -35,15 +34,13 @@ define([

this.deviceResize();

$(this.modelID).on('onscreen', _.bind(this.onscreen, this));

_.delay(function() {
this.popupOpened();
}.bind(this), 500);
},

pageReady: function () {
$(this.modelID).on('onscreen', _.bind(this.onscreen, this));
},

popupOpened: function() {
if ($('body').children('.audio-prompt').css('visibility') == 'visible') {
this.playVideo(false);
Expand Down

0 comments on commit 431fa47

Please sign in to comment.