Bug 83635 - Detach bindings when an element is removed from the document. r+a=sicking

This commit is contained in:
Mounir Lamouri 2010-10-22 21:29:21 +02:00
parent fa881a64c7
commit 971b781063

View File

@ -649,6 +649,7 @@ nsBindingManager::RemovedFromDocumentInternal(nsIContent* aContent,
}
if (binding) {
binding->PrototypeBinding()->BindingDetached(binding->GetBoundElement());
binding->ChangeDocument(aOldDocument, nsnull);
SetBinding(aContent, nsnull);
}