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-03-01 18:04:00 -07:00
2016-04-29 14:41:34 +02:00
2016-01-15 14:35:28 -06:00
2015-09-18 20:48:50 -06:00
2016-01-25 16:33:50 -05:00
2016-04-01 09:09:25 +02:00
2016-02-18 15:09:22 -08:00
2016-01-15 14:35:28 -06:00
2016-04-12 12:02:20 -07:00
2014-02-03 13:20:28 -08:00
2015-11-11 12:05:11 -07:00
2015-10-08 17:34:41 -07:00
2016-01-15 16:22:08 -06:00
2016-03-08 10:20:37 +01:00
2016-01-25 13:19:58 -08:00
2015-10-07 15:25:02 -05:00
2016-01-15 14:35:28 -06:00
2016-01-15 14:35:28 -06:00
2014-09-30 12:58:10 -06:00
2016-01-11 14:01:55 -08:00
2015-10-06 10:02:04 +02:00
2016-03-11 16:57:02 -08:00
2016-01-14 09:30:06 -07:00
2016-01-05 19:55:53 +01:00
2016-04-27 12:03:29 -04:00
2015-10-07 15:25:05 -05:00
2016-04-27 17:06:37 -04:00
2015-11-11 01:23:07 +02:00
2015-10-07 15:25:02 -05:00
2015-08-21 12:55:22 -07:00
2015-04-22 07:29:00 -07:00
2016-04-14 15:46:50 +02:00
2016-02-29 19:51:58 -07:00
2016-01-14 09:30:06 -07:00
2015-10-07 15:25:06 -05:00
2015-10-16 12:34:11 -06:00
2016-01-13 19:05:38 -08:00
2014-11-24 14:58:21 -08:00
2015-07-07 13:46:53 -07:00
2016-04-12 20:35:30 -07:00
2015-11-23 17:35:38 -08:00
2016-03-28 14:49:26 +02:00
2016-03-28 16:40:39 +02:00
2016-02-09 00:36:37 +01:00
2015-10-21 10:57:56 -07:00
2016-04-02 17:48:24 -07:00
2015-10-07 15:25:01 -05:00
2014-12-01 16:28:33 -08:00
2015-10-07 15:25:00 -05:00
2014-12-09 13:41:33 -07:00
2016-04-15 11:25:05 -07:00
2015-10-07 15:24:58 -05:00
2014-02-02 19:29:54 +06:00
2015-10-13 18:54:48 -06:00
2016-04-18 11:06:51 -07:00
2013-12-31 15:05:34 -08:00
2016-04-19 14:25:44 -07:00
2015-09-15 11:44:38 +02:00
2016-02-11 19:56:25 -08:00
2015-10-07 15:24:51 -05:00
2015-10-09 13:46:32 -07:00
2015-07-07 09:50:07 -07:00
2016-04-19 14:25:44 -07:00
2015-10-20 08:36:27 +02:00
2016-03-03 10:06:15 -05:00
2016-02-29 17:30:04 -05:00
2016-04-26 14:56:00 -04:00
2015-12-11 14:28:26 +01:00
2016-04-19 14:25:44 -07:00
2014-08-14 19:41:49 +02:00
2015-10-07 15:25:02 -05:00
2016-04-19 21:31:53 -04:00
2015-10-07 15:24:56 -05:00
2016-03-04 13:40:16 -07:00
2015-08-19 17:55:29 -07:00
2016-03-01 10:56:03 -05:00
2016-03-07 17:14:52 +01:00
2016-03-31 17:45:32 +02:00
2016-04-26 14:56:00 -04:00