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:
cd889e4
)
XObject.js
author
Alan Knowles
<alan@roojs.com>
Wed, 9 May 2012 05:24:46 +0000
(13:24 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 9 May 2012 05:24:46 +0000
(13:24 +0800)
Attribute Changed :XObject.js
XObject.js
patch
|
blob
|
history
diff --git
a/XObject.js
b/XObject.js
index
586067e
..
0560b78
100644
(file)
--- a/
XObject.js
+++ b/
XObject.js
@@
-118,11
+118,12
@@
function XObject (cfg) {
var n=0;
var items = []
print("len:" + this.items.length);
- this.items.forEach(function(i) {
+
if(this.items.length) {
this.items.forEach(function(i) {
print(n++);
items.push(i);
});
- print("done copy");
+
+} print("done copy");
this.items = [];
// create XObject for all the children.