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

index 119a334..7cc877f 100644 (file)
@@ -148,9 +148,8 @@ XObject.prototype = {
       */
     addItem : function(o) {
         
-        
-        
-        var item = o.constructor == XObject ? o : xnew XObject(o);
+         
+        var item = (o.constructor == XObject) ? o : xnew XObject(o);
         item.parent = this;
         this.items.push(item);