diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index dcba4788f..8f8130451 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -708,6 +708,12 @@ var Source = class Source { return this._policy; } + set policy(policy) { + if (this._policy) + this._policy.destroy(); + this._policy = policy; + } + get count() { return this.notifications.length; }