Bug 1000499 - JavaScript Error: "this.removeMessageListener is not a function". r=dimi

This commit is contained in:
Yoshi Huang 2014-04-24 11:14:58 +08:00
Родитель 7139caa8c8
Коммит 074230ebaa
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -362,7 +362,7 @@ NfcContentHelper.prototype = {
// nsIObserver
observe: function observe(subject, topic, data) {
if (topic == "xpcom-shutdown") {
this.removeMessageListener();
this.destroyDOMRequestHelper();
Services.obs.removeObserver(this, "xpcom-shutdown");
cpmm = null;
}