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

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