fix for a bug with XBL binding attached event that was causing the event to be fired repeatedly.

code by hyatt, r=me
This commit is contained in:
ben%netscape.com 2000-08-03 07:17:10 +00:00
Родитель 487d347ce2
Коммит 210cfc6ec4
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -271,7 +271,8 @@ nsBindingManager::ProcessAttachedQueue()
mAttachedQueue->Count(&count);
for (PRUint32 i = 0; i < count; i++) {
nsCOMPtr<nsIXBLBinding> binding;
mAttachedQueue->GetElementAt(i, getter_AddRefs(binding));
mAttachedQueue->GetElementAt(0, getter_AddRefs(binding));
mAttachedQueue->RemoveElementAt(0);
binding->ExecuteAttachedHandler();
}

Просмотреть файл

@ -271,7 +271,8 @@ nsBindingManager::ProcessAttachedQueue()
mAttachedQueue->Count(&count);
for (PRUint32 i = 0; i < count; i++) {
nsCOMPtr<nsIXBLBinding> binding;
mAttachedQueue->GetElementAt(i, getter_AddRefs(binding));
mAttachedQueue->GetElementAt(0, getter_AddRefs(binding));
mAttachedQueue->RemoveElementAt(0);
binding->ExecuteAttachedHandler();
}