confirm: function()

in www/notification.js [54:69]


    confirm: function (message, resultCallback, title, buttonLabels) {
        var _message = typeof message === 'string' ? message : JSON.stringify(message);
        var _title = typeof title === 'string' ? title : 'Confirm';
        var _buttonLabels = buttonLabels || ['OK', 'Cancel'];

        // Strings are deprecated!
        if (typeof _buttonLabels === 'string') {
            console.log(
                'Notification.confirm(string, function, string, string) is deprecated.  Use Notification.confirm(string, function, string, array).'
            );
        }

        _buttonLabels = convertButtonLabels(_buttonLabels);

        exec(resultCallback, null, 'Notification', 'confirm', [_message, _title, _buttonLabels]);
    },