More commits to sync working copy
[gnome.introspection-doc-generator] / JSDOC / Introspect / Property.js
index 96359ed..e6e92e3 100644 (file)
@@ -1,13 +1,11 @@
 //<script type="text/javascript">
 //Gtk = imports.gi.Gtk;
 GI      = imports.gi.GIRepository;
-GLib    = imports.gi.GLib;
-xml     = imports.libxml;
-//GObject = imports.gi.GObject;
+
+imports['Object.js'].load(Object);
 
 console = imports['console.js'].console;
 JSDOC   = imports['JSDOC.js'].JSDOC;
-Roo     = imports['Roo.js'].Roo;
 
 
 Introspect = imports['JSDOC/Introspect.js'].Introspect;
@@ -18,25 +16,25 @@ Basic = imports['JSDOC/Introspect/Basic.js'].Basic;
  * Property
  */
 
-Property = function(prop, memberOf, saveto, keylist) {
-    this.propertyType = 'Property';
-    var n_original = GI.base_info_get_name(prop);
-    this.name  =  n_original.replace(/\-/g, '_') ,
-    this.type  = this.typeToName(GI.property_info_get_type(prop)),
-    this.flags =  GI.property_info_get_flags(prop),
-    this.memberOf = memberOf.alias
-    memberOf[saveto].push(this);
-    keylist.push(this.name);
-    this.desc = Introspect.doc(this.memberOf + '.' + n_original);
-    
-
-    if (typeof(this.type) == 'string' && this.type.indexOf('.') > -1) {
-    
-        Introspect.references[this.type] = Introspect.references[this.type] || [];
-        Introspect.references[this.type].push(this);
-    }
-    
-}
-
-
-Roo.extend(Property,Basic);
+Property = Object.define(
+    function(prop, memberOf, saveto, keylist) {
+        this.propertyType = 'Property';
+        var n_original = GI.base_info_get_name(prop);
+        this.name  =  n_original.replace(/\-/g, '_') ,
+        this.type  = this.typeToName(GI.property_info_get_type(prop)),
+        this.flags =  GI.property_info_get_flags(prop),
+        this.memberOf = memberOf.alias
+        memberOf[saveto].push(this);
+        keylist.push(this.name);
+        this.desc = Introspect.doc(this.memberOf + '.' + n_original);
+        
+
+        if (typeof(this.type) == 'string' && this.type.indexOf('.') > -1) {
+        
+            Introspect.references[this.type] = Introspect.references[this.type] || [];
+            Introspect.references[this.type].push(this);
+        }
+        
+    },
+    Basic
+);