Don't collect unused results array

This commit is contained in:
Kevin Sawicki 2016-06-07 10:24:33 -07:00
parent 4948bcc806
commit 3bcb411e28

View file

@ -92,13 +92,9 @@ var createGuest = function (embedder, params) {
} }
} }
guest.once('destroyed', function () { guest.once('destroyed', function () {
var j, len1, results for (const event of destroyEvents) {
results = [] embedder.removeListener(event, destroy)
for (j = 0, len1 = destroyEvents.length; j < len1; j++) {
event = destroyEvents[j]
results.push(embedder.removeListener(event, destroy))
} }
return results
}) })
// Init guest web view after attached. // Init guest web view after attached.