RE: [flexcoders] Re: isDynamic(obj) ?

2008-05-07 Thread Gordon Smith
But calling describeType() is probably much slower than the try/catch approach. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Tuesday, May 06, 2008 11:19 PM To:

Re: [flexcoders] Re: isDynamic(obj) ?

2008-05-07 Thread Josh McDonald
Ah... in-browser pseudo-code follows for anybody who finds this thread in future :) Will of course NPE for null obj! function isDynamic(obj) : Boolean { var result : Boolean = false; try { obj[probablyDoesntExist] = blue; delete obj.probablyDoesntExist; result = true; }