XObject.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 23 Nov 2010 11:02:24 +0000 (19:02 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 23 Nov 2010 11:02:24 +0000 (19:02 +0800)
XObject.js

index 922a828..5c357f4 100644 (file)
@@ -719,8 +719,8 @@ XObject.extend(XObject,
      */
     type : function(o)
     {
-        if (typeof(o.xtype) == 'object') {
-            return GObject.type_name(o.xtype.type);
+        if (typeof(o) == 'object') {
+            return GObject.type_name(o.type);
            // print("GNAME:" +gname + " GTYPE:"+cfg.xtype.type);
         }
         return 'unknown';