Introspect/Basic.js
authorAlan Knowles <alan@roojs.com>
Wed, 8 Aug 2012 10:28:58 +0000 (18:28 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 8 Aug 2012 10:28:58 +0000 (18:28 +0800)
Introspect/Basic.js

index 00cc18e..e9955f8 100644 (file)
@@ -43,7 +43,9 @@ Basic = XObject.define(
                 return ty;
             }
             var interface_info = GI.type_info_get_interface (type_info);       
-            var interface_type = GI.base_info_get_type (interface_info);
+            var interface_type = GI.base_info_get_type  ?
+                GI.base_info_get_type (interface_info) : interface_info.get_type() ;
+                
             if (interface_type  == GI.InfoType.CALLBACK) {
                 // callback.. 
                 var Callback = imports.Callback.Callback ;