mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 778027 - [Settings API] addObserver & onsettingchange quirks. r=sicking
This commit is contained in:
parent
434b0c7e1d
commit
79683fb15e
@ -268,11 +268,9 @@ SettingsManager.prototype = {
|
||||
}
|
||||
if (this._callbacks && this._callbacks[msg.key]) {
|
||||
debug("observe callback called! " + msg.key + " " + this._callbacks[msg.key].length);
|
||||
for (let cb in this._callbacks[msg.key]) {
|
||||
this._callbacks[msg.key].forEach(function(cb) {
|
||||
cb({settingName: msg.key, settingValue: msg.value});
|
||||
});
|
||||
}
|
||||
this._callbacks[msg.key].forEach(function(cb) {
|
||||
cb({settingName: msg.key, settingValue: msg.value});
|
||||
});
|
||||
}
|
||||
} else {
|
||||
debug("no observers stored!");
|
||||
|
Loading…
Reference in New Issue
Block a user