What JavaScript object copy function works with greasemonkey?

Posted by Geo on Stack Overflow See other posts from Stack Overflow or by Geo
Published on 2009-06-23T22:13:47Z Indexed on 2010/04/05 8:03 UTC
Read the original article Hit count: 327

Filed under:
|
|
|

I know there is another question related to copying objects in JavaScript here, but the code they provide does not work with greasemonkey. From what I was able to trace, the code for the accepted answer dies/ stops at the line :

var temp = new obj.constructor();

Is there any way to see what went wrong ?

It's not really necessary I use the same function for the object copying, but I would like something that works. Do you know some function?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about greasemonkey