From 17041efc717122cbfb873ced48784b722b1a16db Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Thu, 22 Mar 2018 00:33:14 +1100 Subject: Check for array for speed options (fixes #252) --- src/js/controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3