mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
bug 709589 - Some engine manager cleanup found by SeaMonkey reviews - improve _cloneEngine, r=gavin
This commit is contained in:
parent
fe28079c5d
commit
9552ef6050
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user