bug 709589 - Some engine manager cleanup found by SeaMonkey reviews - improve _cloneEngine, r=gavin

This commit is contained in:
Robert Kaiser 2012-01-19 13:39:44 +01:00
parent ec4a7c8a0c
commit 550915e1ac

View File

@ -313,12 +313,12 @@ EngineStore.prototype = {
return null;
},
_cloneEngine: function ES_cloneObj(aEngine) {
var newO=[];
_cloneEngine: function ES_cloneEngine(aEngine) {
var clonedObj={};
for (var i in aEngine)
newO[i] = aEngine[i];
newO.originalEngine = aEngine;
return newO;
clonedObj[i] = aEngine[i];
clonedObj.originalEngine = aEngine;
return clonedObj;
},
// Callback for Array's some(). A thisObj must be passed to some()