projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cf8712
)
XObject.js
author
alan
<alan@alanfast.akbkhome.com>
Thu, 15 Apr 2010 10:40:39 +0000
(18:40 +0800)
committer
alan
<alan@alanfast.akbkhome.com>
Thu, 15 Apr 2010 10:40:39 +0000
(18:40 +0800)
XObject.js
patch
|
blob
|
history
diff --git
a/XObject.js
b/XObject.js
index
743c6f7
..
099fd50
100644
(file)
--- a/
XObject.js
+++ b/
XObject.js
@@
-21,7
+21,7
@@
function XObject (cfg) {
o = {};
o.pack = o.pack || 'add';
- this.items = [];
+
XObject.extend(o, cfg); // copy everything into o.
XObject.extend(this, o);
@@
-29,7
+29,7
@@
function XObject (cfg) {
// remove items.
this.listeners = this.listeners || {};
-
+ this.items = [];
// remove objects/functions from o, so they can be sent to the contructor.
for (var i in o) {