Bug 689078 - Error in saving tab value: TypeError: this.parent is null; r=dietrich

This commit is contained in:
Raymond Lee 2011-09-26 10:46:25 +08:00
parent 574fe51799
commit 0c4144dea1

View File

@ -228,7 +228,7 @@ TabItem.prototype = Utils.extend(new Item(), new Subscribable(), {
groupID: (this.parent ? this.parent.id : 0),
title: this.tab.label
};
if (this.parent.getActiveTab() == this)
if (this.parent && this.parent.getActiveTab() == this)
data.active = true;
return data;