XObject.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 26 Nov 2010 07:29:22 +0000 (15:29 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 26 Nov 2010 07:29:22 +0000 (15:29 +0800)
XObject.js

index 4a198a3..673f8cf 100644 (file)
@@ -80,6 +80,9 @@ function XObject (cfg) {
                // print("GNAME:" +gname + " GTYPE:"+cfg.xtype.type);
             }
             
+            // in the situation where we have been called and there is a base object
+            // defining the behavior..
+            // then we should copy the prototypes from the base object into this..
             var base = gname  ? imports.XObjectBase[gname][gname] : false;
             if (base) {
               //  print("Overlaying XOBJBECT-BASE."  + cfg.xtype);