Files
atom/spec
Antonio Scandurra c5a76d4a7d Persist the entire state on reload
This fixes an annoying problem that prevented the state of marker layers
from being saved when the window was reloaded either via `Cmd+R` in
DevTools or via `Ctrl+Option+Cmd+L` in Atom.

The issue was that we were *always* scheduling `saveState` on an idle
callback: `window.onbeforeunload`, however, doesn't wait for that event
before closing the window, and thus that state was never saved in those
situations.

The solution is to use idle callbacks only during the critical code path
(i.e. on mousedown and keydown), but save it synchronously otherwise.
Saving something to IndexedDB is actually asynchronous too, but it seems
like Chrome fulfills `put` requests that get executed right during
`onbeforeunload`.
2016-04-29 14:41:34 +02:00
..
2016-04-26 09:49:38 -04:00
2016-03-31 10:40:57 +02:00
2016-04-27 17:06:37 -04:00
2015-11-11 01:23:07 +02:00
2014-02-02 19:29:54 +06:00
2016-04-26 14:56:00 -04:00
2015-12-11 14:28:26 +01:00
2016-03-01 10:56:03 -05:00
2016-04-26 14:56:00 -04:00