Don't collect unused results array
This commit is contained in:
parent
4948bcc806
commit
3bcb411e28
1 changed files with 2 additions and 6 deletions
|
@ -92,13 +92,9 @@ var createGuest = function (embedder, params) {
|
|||
}
|
||||
}
|
||||
guest.once('destroyed', function () {
|
||||
var j, len1, results
|
||||
results = []
|
||||
for (j = 0, len1 = destroyEvents.length; j < len1; j++) {
|
||||
event = destroyEvents[j]
|
||||
results.push(embedder.removeListener(event, destroy))
|
||||
for (const event of destroyEvents) {
|
||||
embedder.removeListener(event, destroy)
|
||||
}
|
||||
return results
|
||||
})
|
||||
|
||||
// Init guest web view after attached.
|
||||
|
|
Loading…
Reference in a new issue