This commit is contained in:
scottbommarito 2016-03-25 17:17:50 -07:00
Родитель 642ad192d0
Коммит 1bd55bde5e
3 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -802,6 +802,9 @@ describe("window.codePush", function() {
describe("#window.codePush.sync", function() {
/* We test the functionality with sync twice--first, with sync only called one,
* then, with sync called again while the first sync is still running
/* Tests where sync is called just once */
describe("window.codePush.sync.1x", function() {

Просмотреть файл

@ -211,8 +211,6 @@ class CodePush implements CodePushCordovaPlugin {
*
*/
public sync(syncCallback?: SuccessCallback<any>, syncOptions?: SyncOptions, downloadProgress?: SuccessCallback<DownloadProgress>): void {
// TODO: update this code to mirror the React-Native plugin, which uses promises instead of a callback.
/* Check if a sync is already in progress */
if (CodePush.SyncInProgress) {
/* A sync is already in progress */

Просмотреть файл

@ -34,7 +34,7 @@ enum SyncStatus {
ERROR,
/**
* Result status - there is an ongoing sync in progress.
* Result status - there is an ongoing sync in progress, so this attempt to sync has been aborted.
*/
IN_PROGRESS,