Fix timing problems for controls using index(). Bug 291797, r=smaug+doronr, a=mkaply, NPOTB
git-svn-id: svn://10.0.0.236/trunk@172801 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -232,7 +232,8 @@ nsXFormsUtilityService::GetRepeatIndex(nsIDOMNode *aRepeat, PRUint32 *aIndex)
|
||||
*aIndex = 0;
|
||||
|
||||
nsCOMPtr<nsIXFormsRepeatElement> repeatEle = do_QueryInterface(aRepeat);
|
||||
NS_ENSURE_TRUE(repeatEle, NS_ERROR_NULL_POINTER);
|
||||
|
||||
return repeatEle->GetIndex(aIndex);
|
||||
///
|
||||
/// @bug This should somehow end up in a NaN per the XForms 1.0 Errata (XXX)
|
||||
return repeatEle ? repeatEle->GetIndex(aIndex) : NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user