as discovered by @alexcjohnson in https://github.com/plotly/plotly.js/pull/1110#discussion_r86576948