Commit ae013ec0 by Sebastián Katzer

Fix "Unknown property: autoClear" message

parent 82fc1dfb
...@@ -87,7 +87,9 @@ exports.mergeWithDefaults = function (options) { ...@@ -87,7 +87,9 @@ exports.mergeWithDefaults = function (options) {
options.text = this.getValueFor(options, 'text', 'message'); options.text = this.getValueFor(options, 'text', 'message');
options.data = this.getValueFor(options, 'data', 'json'); options.data = this.getValueFor(options, 'data', 'json');
options.autoClear = this.getValueFor(options, 'autoClear', 'autoCancel'); if (defaults.hasOwnProperty('autoClear')) {
options.autoClear = this.getValueFor(options, 'autoClear', 'autoCancel');
}
if (options.autoClear !== true && options.ongoing) { if (options.autoClear !== true && options.ongoing) {
options.autoClear = false; options.autoClear = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment