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:
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;
}
2 matches
Mail list logo