Bug 893994 - avoid warnings for empty strings passed to document.getElementById when there's no mainView, r=mconley

This commit is contained in:
Gijs Kruitbosch 2013-07-18 09:58:21 +02:00
parent 35242a7604
commit ac7c63a3d7

View File

@ -95,7 +95,7 @@
onget="return this._viewStack.getAttribute('viewtype') == 'subview'"/>
<property name="_mainViewId" onget="return this.getAttribute('mainViewId');" onset="this.setAttribute('mainViewId', val); return val;"/>
<property name="_mainView" readonly="true"
onget="return document.getElementById(this._mainViewId);"/>
onget="return this._mainViewId ? document.getElementById(this._mainViewId) : null;"/>
<property name="ignoreMutations">
<getter>