Commit 65123eba by Sebastián Katzer

Support ongoing: even it has been renamed to sticky:

parent 3b145ca2
...@@ -83,10 +83,14 @@ exports.mergeWithDefaults = function (options) { ...@@ -83,10 +83,14 @@ exports.mergeWithDefaults = function (options) {
options.autoClear = this.getValueFor(options, 'autoClear', 'autoCancel'); options.autoClear = this.getValueFor(options, 'autoClear', 'autoCancel');
} }
if (options.autoClear !== true && options.ongoing) { if (options.autoClear !== true && options.sticky) {
options.autoClear = false; options.autoClear = false;
} }
if (defaults.hasOwnProperty('sticky')) {
options.sticky = this.getValueFor(options, 'sticky', 'ongoing');
}
for (var key in defaults) { for (var key in defaults) {
if (options[key] === null || options[key] === undefined) { if (options[key] === null || options[key] === undefined) {
if (options.hasOwnProperty(key) && ['data','sound'].indexOf(key) > -1) { if (options.hasOwnProperty(key) && ['data','sound'].indexOf(key) > -1) {
......
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