small correction to last revision. code=hyatt@netscape.com

This commit is contained in:
danm%netscape.com 2000-08-22 22:58:44 +00:00
parent 34392727b5
commit e9c330dad7
2 changed files with 2 additions and 2 deletions

View File

@ -359,7 +359,7 @@ nsXBLStreamListener::Load(nsIDOMEvent* aEvent)
// reflow on this binding doc to deal with the fact that iframes
// don't construct or load their subdocs until they get a reflow.
if (count > 0) {
nsXBLBindingRequest* req = (nsXBLBindingRequest*)mBindingRequests.ElementAt(i);
nsXBLBindingRequest* req = (nsXBLBindingRequest*)mBindingRequests.ElementAt(0);
nsCOMPtr<nsIDocument> document;
req->mBoundElement->GetDocument(*getter_AddRefs(document));
if (document)

View File

@ -359,7 +359,7 @@ nsXBLStreamListener::Load(nsIDOMEvent* aEvent)
// reflow on this binding doc to deal with the fact that iframes
// don't construct or load their subdocs until they get a reflow.
if (count > 0) {
nsXBLBindingRequest* req = (nsXBLBindingRequest*)mBindingRequests.ElementAt(i);
nsXBLBindingRequest* req = (nsXBLBindingRequest*)mBindingRequests.ElementAt(0);
nsCOMPtr<nsIDocument> document;
req->mBoundElement->GetDocument(*getter_AddRefs(document));
if (document)