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;
|
||||
},
|
||||
|
||||
_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