Partially revert 76e8ea835f

Apparently this doesn't work on Firefox 24. Sigh.
This commit is contained in:
Simon Kornblith 2014-06-23 22:29:32 -04:00
parent f45b219792
commit dd5160cc73

View File

@ -492,9 +492,7 @@ Zotero.Translate.SandboxManager.prototype = {
"_canCopy":function(obj) {
if(typeof obj !== "object" || obj === null) return false;
var proto = Object.getPrototypeOf(obj),
global = Components.utils.getGlobalForObject(obj);
if((proto !== global.Object.prototype && proto !== global.Array.prototype) ||
if((obj.constructor.name !== "Object" && obj.constructor.name !== "Array") ||
"__exposedProps__" in obj) {
return false;
}