mirror of
https://github.com/zotero/zotero.git
synced 2026-09-23 00:43:17 +00:00
Small fix to copyObject
This commit is contained in:
parent
9219100901
commit
ee35f7df41
1 changed files with 1 additions and 1 deletions
|
|
@ -512,7 +512,7 @@ Zotero.Translate.SandboxManager.prototype = {
|
|||
"_copyObject":function(obj, wm) {
|
||||
if(!this._canCopy(obj)) return obj
|
||||
if(!wm) wm = new WeakMap();
|
||||
var obj2 = (obj instanceof Array ? this.sandbox.Array() : this.sandbox.Object());
|
||||
var obj2 = (obj.constructor.name === "Array" ? this.sandbox.Array() : this.sandbox.Object());
|
||||
var wobj2 = obj2.wrappedJSObject ? obj2.wrappedJSObject : obj2;
|
||||
for(var i in obj) {
|
||||
if(!obj.hasOwnProperty(i)) continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue