mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 709589 - Some engine manager cleanup found by SeaMonkey reviews - improve _cloneEngine, r=gavin
This commit is contained in:
parent
ec4a7c8a0c
commit
550915e1ac
@ -313,12 +313,12 @@ EngineStore.prototype = {
|
|||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
||||||
_cloneEngine: function ES_cloneObj(aEngine) {
|
_cloneEngine: function ES_cloneEngine(aEngine) {
|
||||||
var newO=[];
|
var clonedObj={};
|
||||||
for (var i in aEngine)
|
for (var i in aEngine)
|
||||||
newO[i] = aEngine[i];
|
clonedObj[i] = aEngine[i];
|
||||||
newO.originalEngine = aEngine;
|
clonedObj.originalEngine = aEngine;
|
||||||
return newO;
|
return clonedObj;
|
||||||
},
|
},
|
||||||
|
|
||||||
// Callback for Array's some(). A thisObj must be passed to some()
|
// Callback for Array's some(). A thisObj must be passed to some()
|
||||||
|
Loading…
Reference in New Issue
Block a user