Changeset 995

Show
Ignore:
Timestamp:
2008-07-29 22:58:03 (3 months ago)
Author:
MaierMan
Message:

Small bugfix/improvement

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/modules/preferences.jsm

    r993 r995  
    173173        catch (ex) { 
    174174                // BEWARE: not yet implemented in XPCOM 1.8/trunk. 
    175                 let c = {value: 0}; 
    176                 let children = prefs.getChildList(branch, c); 
    177                 for (var i = 0; i < c.value; ++i) { 
    178                         reset(prefs[i]); 
     175                let children = prefs.getChildList(branch, {}); 
     176                for each (let key in children) { 
     177                        reset(key); 
    179178                } 
    180179        }