From 0315e637829b5acbf9888c0f23e5b9734c8269b8 Mon Sep 17 00:00:00 2001 From: Nick Kenens Date: Wed, 13 Jul 2016 23:36:23 +0200 Subject: [PATCH] Update spinnerdialog.ts to fix wrong documentation (#287) Just implemented the SpinnerDialog into my app to use with Ionic Deploy. The cancelCallback still happens when set to "false", when setting it to "true, the cancelCallback doesn't get called and therefore the SpinnerDialog doesn't hide on Android. --- src/plugins/spinnerdialog.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/spinnerdialog.ts b/src/plugins/spinnerdialog.ts index 3f019609..b577ee57 100644 --- a/src/plugins/spinnerdialog.ts +++ b/src/plugins/spinnerdialog.ts @@ -27,7 +27,7 @@ export class SpinnerDialog { * Shows the spinner dialog * @param title {string} Spinner title (shows on Android only) * @param message {string} Spinner message - * @param cancelCallback {boolean|function} Set to false to set spinner not cancelable. Or provide a function to call when the user cancels the spinner. + * @param cancelCallback {boolean|function} Set to true to set spinner not cancelable. Or provide a function to call when the user cancels the spinner. * @param iOSOptions {object} Options for iOS only */ @Cordova({ @@ -50,4 +50,4 @@ export interface SpinnerDialogIOSOptions { textColorRed?: number; textColorGreen?: number; textColorBlue?: number; -} \ No newline at end of file +}