Mark Rowe 0249722a02 Remove configuration handling from Realm._waitForDownload
There's no reason for `_waitForDownload` to be responsible for
constructing a new Realm instance when we can instead use the
constructor for that. This eliminates the potential for different
handling of the Realm configuration between `_waitForDownload` and `new
Realm`, which was responsible for various issues (#1391, #1392, #1393).
In turn, this requires that `_waitForDownload` become an instance method.

In addition, we update `Realm.openAsync` and `getSpecialPurposeRealm` to
delegate to `Realm.open` rather than reimplementing equivalent logic
themselves.

Finally, the private mechanism for registering a download progress
handler as part of the sync configuration (`_onDownloadProgress`) is
removed in favor of the public API (`progress()` on the promise returned
by `Realm.open`).
2017-10-10 21:16:23 -07:00
..
2017-03-07 23:24:30 +01:00
2017-10-02 13:30:08 +03:00
2016-08-04 10:10:28 -07:00
2016-11-08 08:59:30 -08:00
2017-10-03 13:37:21 +02:00
2017-09-30 10:26:42 +02:00
2017-09-22 20:22:17 +03:00