jshint was showing a warning that there was no break statement after the first case, which there doesn't need to be. The most straightforward way to fix this without using the unclear // jshint ignore:line is to just have two functions. This change also updates invocations of isMouseButton to use the exact case function, as this will remove the need to check the case of mosueEvent.type. This was done because onMouseMove is invoked at a high frequency. |
||
---|---|---|
.. | ||
api.js | ||
document.js | ||
float.js | ||
frontend-api-receiver.js | ||
frontend-api-sender.js | ||
frontend-initialize.js | ||
frontend.js | ||
popup-nested.js | ||
popup-proxy-host.js | ||
popup-proxy.js | ||
popup.js | ||
source.js | ||
util.js |