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