Bug 748895 - Error message if an error message arrived after the destruction of the console binding. r=enndeakin

This commit is contained in:
Vivien Nicolas 2012-05-04 20:05:40 +02:00
parent 9a55fe1f2c
commit 6e4eabd1a0

View File

@ -80,7 +80,12 @@
this.mConsoleListener = {
console: this,
observe : function(aObject) { this.console.appendItem(aObject); }
observe : function(aObject) {
// The message can arrive a little bit after the xbl binding has been
// unbind. So node.appendItem will not be available anymore.
if ('appendItem' in this.console)
this.console.appendItem(aObject);
}
};
this.mConsoleRowBox = document.getAnonymousElementByAttribute(this, "role", "console-rows");