projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df1e778
)
XObject.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 26 Nov 2010 07:37:37 +0000
(15:37 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 26 Nov 2010 07:37:37 +0000
(15:37 +0800)
XObject.js
patch
|
blob
|
history
diff --git
a/XObject.js
b/XObject.js
index
856aa16
..
d0f682f
100644
(file)
--- a/
XObject.js
+++ b/
XObject.js
@@
-128,8
+128,9
@@
function XObject (cfg) {
this.items = [];
// create XObject for all the children.
items.forEach(function(i,n) {
-
- var item = (i.constructor == XObject) ? i : new XObject(i);
+ var base = XObject.baseXObject(i);
+ base = base || XObject;
+ var item = (i.constructor == XObject) ? i : new base(i);
item.parent = _this;
_this.items.push(item);
//_this.addItem(i);