Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Replace options.showSkipButton=false with options.skip=negative
Browse files Browse the repository at this point in the history
  • Loading branch information
nhjm449 committed May 30, 2014
1 parent 0ec444f commit 4a98fec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions videojs.vast.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
},

defaults = {
showSkipButton: true,
skip: 5,
skip: 5 // negative disables
},

vastPlugin = function(options) {
Expand Down Expand Up @@ -167,7 +166,7 @@

var skipButton = document.createElement("div");
skipButton.className = "vast-skip-button";
if (settings.showSkipButton === false) {
if (settings.skip < 0) {
skipButton.style.display = "none";
}
player.vast.skipButton = skipButton;
Expand Down

0 comments on commit 4a98fec

Please sign in to comment.