Default value for property on dialog (#247)

This commit is contained in:
Jonathan Garbee 2017-08-11 20:24:46 -04:00 committed by Andrey Lushnikov
parent 4551afc6dc
commit 56b0d8722b

View File

@ -23,12 +23,12 @@ class Dialog {
* @param {string} message
* @param {(string|undefined)} defaultValue
*/
constructor(client, type, message, defaultValue) {
constructor(client, type, message, defaultValue = '') {
this._client = client;
this.type = type;
this._message = message;
this._handled = false;
this._defaultValue = defaultValue || '';
this._defaultValue = defaultValue;
}
/**