From 0476ccf4a3025b37c69b7181744dd6823bd00745 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 18 May 2010 23:30:41 +0800 Subject: [PATCH] XObject.js --- XObject.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/XObject.js b/XObject.js index 88edd8375..598c2a48d 100644 --- a/XObject.js +++ b/XObject.js @@ -203,10 +203,14 @@ XObject.prototype = { //} if (this.items) { - + var items = []; + this.items.forEach(function(i) { + items.push(i); + }); + this.items = []; var _this=this; - this.items.forEach(function(i) { + items.forEach(function(i) { _this.addItem(i); }); } -- 2.39.2