diff options
author | Sam Potts <sam@potts.es> | 2018-03-22 00:33:14 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-03-22 00:33:14 +1100 |
commit | 17041efc717122cbfb873ced48784b722b1a16db (patch) | |
tree | a87c36077ea36a5dfe435844535785906fb7ce18 /src/js/controls.js | |
parent | 05b8e8a6e0ed260801a4fe21f10656e86a47f8fd (diff) | |
download | plyr-17041efc717122cbfb873ced48784b722b1a16db.tar.lz plyr-17041efc717122cbfb873ced48784b722b1a16db.tar.xz plyr-17041efc717122cbfb873ced48784b722b1a16db.zip |
Check for array for speed options (fixes #252)
Diffstat (limited to 'src/js/controls.js')
-rw-r--r-- | src/js/controls.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/controls.js b/src/js/controls.js index cd64c271..b0159115 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -708,7 +708,7 @@ const controls = { const type = 'speed'; // Set the default speeds - if (!utils.is.object(this.options.speed) || !Object.keys(this.options.speed).length) { + if (!utils.is.array(this.options.speed) || !this.options.speed.length) { this.options.speed = [ 0.5, 0.75, |