]> git.gir.st - VimFx.git/commit
Optimize the API
authorSimon Lydell <simon.lydell@gmail.com>
Mon, 26 Oct 2015 19:09:18 +0000 (20:09 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Mon, 26 Oct 2015 19:09:18 +0000 (20:09 +0100)
commit9508bcb0c4db944fe401acea1bfa511fba32f055
tree63d0b9c90d8b0940d060c6499301a6ffae929719
parent32ee2ac685115afb1f9bf9e32abd8da4c10cc4ef
Optimize the API

- Before, if an add-on called `vimfx.set()` around 200 times it could delay
  Firefox's startup time with almost a second. Now there's no delay at all.

- Marks internal variables in public.coffee with a leading underscore. There's
  nothing stopping people from importing them, but no they at least look
  private.

- Remove `vimfx.refresh()`. That is done automatically now, in an efficient way.

- This also makes the test's teardown more robust.
documentation/api.md
extension/lib/api.coffee
extension/lib/main.coffee
extension/lib/public.coffee
extension/test/index.coffee
extension/test/test-api.coffee
Imprint / Impressum