зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1010668 - B2G NFC: Nfc doesn't implement nsIObserver. r=dimi
From 48629f7e966c98e2149eb9ec46fa16120d804413 Mon Sep 17 00:00:00 2001 --- dom/system/gonk/Nfc.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
This commit is contained in:
Родитель
4df6db82e8
Коммит
9a5ea05404
|
@ -437,7 +437,7 @@ Nfc.prototype = {
|
|||
classDescription: "Nfc",
|
||||
interfaces: [Ci.nsIWorkerHolder]}),
|
||||
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIWorkerHolder]),
|
||||
QueryInterface: XPCOMUtils.generateQI([Ci.nsIWorkerHolder, Ci.nsIObserver]),
|
||||
|
||||
_currentSessionId: null,
|
||||
|
||||
|
@ -636,6 +636,15 @@ Nfc.prototype = {
|
|||
return null;
|
||||
},
|
||||
|
||||
/**
|
||||
* nsIObserver interface methods.
|
||||
*/
|
||||
observe: function(subject, topic, data) {
|
||||
if (topic != "profile-after-change") {
|
||||
debug("Should receive 'profile-after-change' only, received " + topic);
|
||||
}
|
||||
},
|
||||
|
||||
setConfig: function setConfig(prop) {
|
||||
this.sendToWorker("config", prop);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче