зеркало из https://github.com/mozilla/pjs.git
Bug 670463 - PlacesAggregatedTransaction arrays prevent chrome windows from being destroyed. r=mak
This commit is contained in:
Родитель
4829f0623b
Коммит
1b9f5ddc8b
|
@ -2263,7 +2263,9 @@ BaseTransaction.prototype = {
|
|||
|
||||
function PlacesAggregatedTransaction(aName, aTransactions)
|
||||
{
|
||||
this._transactions = aTransactions;
|
||||
// Copy the transactions array to decouple it from its prototype, which
|
||||
// otherwise keeps alive its associated global object.
|
||||
this._transactions = Array.slice(aTransactions);
|
||||
this._name = aName;
|
||||
this.container = -1;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче