projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2ec4f8
)
XObject.js
author
alan
<alan@alanfast.akbkhome.com>
Thu, 15 Apr 2010 09:39:59 +0000
(17:39 +0800)
committer
alan
<alan@alanfast.akbkhome.com>
Thu, 15 Apr 2010 09:39:59 +0000
(17:39 +0800)
XObject.js
patch
|
blob
|
history
diff --git
a/XObject.js
b/XObject.js
index
d223d2d
..
8b9498b
100644
(file)
--- a/
XObject.js
+++ b/
XObject.js
@@
-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 = {