Skip to content
Snippets Groups Projects
Commit 4d087182 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix array support in mouse_reporting_modes()

typeof [] returns 'object', not 'array'
parent 1ebbc545
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ function mouse_reporting_modes(mode)
if(mode == 'all')
for(var i in defs.mouse_reporting)
list.push(defs.mouse_reporting[i]);
else if(typeof mode == 'array')
else if(typeof mode == 'object')
for(var i in mode)
list.push(defs.mouse_reporting[mode[i]]);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment