Use a cached value for checking if the browser is Firefox. Only validate and set up document.caretRangeFromPoint once. Use switch for multiple comparisons on the same value. |
||
---|---|---|
.. | ||
api.js | ||
document.js | ||
float.js | ||
frontend.js | ||
popup.js | ||
source.js | ||
util.js |