What JavaScript object copy function works with greasemonkey?
- by Geo
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?