Subj : file.iniGetObject()
To   : Digital Man
From : MCMLXXIX
Date : Tue Sep 14 2010 08:22 pm

 Re: file.iniGetObject()
 By: Digital Man to MCMLXXIX on Tue Sep 14 2010 16:32:06

>   Re: file.iniGetObject()
>   By: MCMLXXIX to Digital Man on Mon Sep 13 2010 10:30 am
>
>  > Would it break anything if calling file.iniGetObject("section"); returned
>  > undefined instead of an empty object if the section "section" doesn't exi
>  > in the file?
>  >
>  > It's kind of a pain to work around that.
>
> I just committed a change to do that, try it and let me know. Now, one cavea
> is that the method will return null/undefined if the specified section doesn
> exist in the .ini file *or* it contains no keys/values. The second condition
> may prove to be a problem for some scripts. We'll have to see.
>

hmm. there's no way to have it both ways?

e.g. empty object if the section exists with no keys/values, and null/undefined
if it's not there at all


---
� Synchronet � The BRoKEN BuBBLE (MDJ.ATH.CX)