mProcessingAttachedStack = PR_FALSE;
nsBindingManager::ProcessAttachedQueue(){  if (!mAttachedQueue)    return NS_OK;  PRUint32 count;  mAttachedQueue->Count(&count);  for (PRUint32 i = 0; i < count; i++) {    nsCOMPtr<nsISupports> supp;    mAttachedQueue->GetElementAt(0, getter_AddRefs(supp));    mAttachedQueue->RemoveElementAt(0);    nsCOMPtr<nsIXBLBinding> binding(do_QueryInterface(supp));    if (binding)      binding->ExecuteAttachedHandler();    else {      nsCOMPtr<nsIXBLBindingAttachedHandler> handler(do_QueryInterface(supp));      if (handler)        handler->OnBindingAttached();    }  }  ClearAttachedQueue();  return NS_OK;}