[Swfdec] test/trace
Benjamin Otte
company at kemper.freedesktop.org
Wed Sep 5 05:10:18 PDT 2007
test/trace/trace_properties.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
diff-tree 38189c49dbb766651e8e0af949cfab1865c83398 (from 97b081a94b818aedc4c7f9f9aea6d6326ca181d9)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Sep 5 14:09:03 2007 +0200
use hasOwnProperty instead of != undefined to figure out if the object has the property
diff --git a/test/trace/trace_properties.as b/test/trace/trace_properties.as
index 9306a84..307c1b9 100644
--- a/test/trace/trace_properties.as
+++ b/test/trace/trace_properties.as
@@ -430,7 +430,7 @@ function trace_properties (o, prefix, id
if (typeof (o) == "object" || typeof (o) == "function")
{
- if (o["mySecretId"] == undefined) {
+ if (!o.hasOwnProperty ("mySecretId")) {
o["mySecretId"] = prefix + (prefix != "" ? "." : "") + identifier;
generate_names (o, prefix, identifier);
}
More information about the Swfdec
mailing list