Bug 391534 - Prevent '<preference> with id='' and name='' has unknown type ''' warnings. r=Mano, a1.9=schrep

This commit is contained in:
florian@queze.net 2008-01-16 21:01:12 -08:00
parent e767380c51
commit 38b539650e

View File

@ -80,6 +80,11 @@
<implementation>
<constructor>
<![CDATA[
// if the element has been inserted without the name attribute set,
// we have nothing to do here
if (!this.name)
return;
this.preferences.rootBranchInternal
.addObserver(this.name, this.preferences, false);
// In non-instant apply mode, we must try and use the last saved state