зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
487d347ce2
Коммит
210cfc6ec4
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче