XObject.js
authoralan <alan@alanfast.akbkhome.com>
Thu, 15 Apr 2010 09:39:59 +0000 (17:39 +0800)
committeralan <alan@alanfast.akbkhome.com>
Thu, 15 Apr 2010 09:39:59 +0000 (17:39 +0800)
XObject.js

index d223d2d..8b9498b 100644 (file)
@@ -14,6 +14,9 @@ function XObject (o) {
     o = o || {};
     XObject.extend(this, o);
     
+    // remove items.
+    this.items = [];
+    var items = o.items || []
     // remove objects/functions from o, so they can be sent to the contructor.
     for (var i in o) {
         if ((typeof(o[i]) == 'object') || (typeof(o[i]) == 'function')) {
@@ -57,6 +60,8 @@ function XObject (o) {
         XObject.registry[o.xnsid][o.xid] = this;
     }
     
+    this.addItems(
+    
     
 }
 XObject.prototype = {