XObject.js
authorAlan Knowles <alan@wideboy.(none)>
Thu, 15 Apr 2010 13:51:31 +0000 (21:51 +0800)
committerAlan Knowles <alan@wideboy.(none)>
Thu, 15 Apr 2010 13:51:31 +0000 (21:51 +0800)
XObject.js

index 7cc877f..27b2ecc 100644 (file)
@@ -149,7 +149,7 @@ XObject.prototype = {
     addItem : function(o) {
         
          
-        var item = (o.constructor == XObject) ? o : xnew XObject(o);
+        var item = (o.constructor == XObject) ? o : new XObject(o);
         item.parent = this;
         this.items.push(item);