use bla.hasOwnProperty('test')

- venkat
http://www.venkatj.com

--- In [email protected], "Rafael Faria"
<[EMAIL PROTECTED]> wrote:
>
> in the following code i'm "trying" to test if the property of an
> object exists but it doesnt work, how can i do that? i'm getting an
> error and i'm trying to handle that because sometimes it will have the
> property sometimes not...
> 
> 
>               var bla:Object;
>               
>               if (bla.test) { // RETURNS an ERROR
>                       
>               }
>


Reply via email to