projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e2363b
)
XObject.js
author
Alan Knowles
<alan@wideboy.(none)>
Thu, 15 Apr 2010 13:51:08 +0000
(21:51 +0800)
committer
Alan Knowles
<alan@wideboy.(none)>
Thu, 15 Apr 2010 13:51:08 +0000
(21:51 +0800)
XObject.js
patch
|
blob
|
history
diff --git
a/XObject.js
b/XObject.js
index
119a334
..
7cc877f
100644
(file)
--- a/
XObject.js
+++ b/
XObject.js
@@
-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);