examples/HTML StarterKit/lib/durandal/js/plugins/dialog.js
function(message, title, options){
            if(system.isString(this.MessageBox)){
                return dialog.show(this.MessageBox, [
                    message,
                    title || MessageBox.defaultTitle,
                    options || MessageBox.defaultOptions
                ]);
            }

            return dialog.show(new this.MessageBox(message, title, options));
        }
function(message, title, options){
            if(system.isString(this.MessageBox)){
                return dialog.show(this.MessageBox, [
                    message,
                    title || MessageBox.defaultTitle,
                    options || MessageBox.defaultOptions
                ]);
            }

            return dialog.show(new this.MessageBox(message, title, options));
        }
function ( message , title , options ) { if ( system . isString ( this . MessageBox ) ) { return dialog . show ( this . MessageBox , [ message , title || MessageBox . defaultTitle , options || MessageBox . defaultOptions ] ) ; } return dialog . show ( new this . MessageBox ( message , title , options ) ) ; }
Shows a message box.
@method showMessage
@param {string} message The message to display in the dialog.
@param {string} [title] The title message.
@param {string[]} [options] The options to provide to the user.
@return {Promise} A promise that resolves when the message box is closed and returns the selected option.
Shows a message box .