See this line: https://github.com/leapmotion/leapjs/blob/master/lib/index.js#L53 It should be replaced to check for type of opts being function, rather than a couple of specific keys for an edge-case