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-09-29 21:52:57 +03:00
2017-09-30 16:44:17 +03:00
2017-03-27 19:18:56 +03:00
2017-07-10 16:53:00 +02:00
2016-10-04 15:07:14 -07:00
2016-10-04 15:07:14 -07:00
2017-09-27 16:00:45 +02:00