[XFORMS] Bug 391586, bind on an insert changes the in-scope evaluation context, p=msterlin@us.ibm.com, r=aaronr+me, NPOTB
git-svn-id: svn://10.0.0.236/trunk@234039 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -351,7 +351,8 @@ nsXFormsUtils::GetNodeContext(nsIDOMElement *aElement,
|
||||
nsIXFormsControl **aParentControl,
|
||||
nsIDOMNode **aContextNode,
|
||||
PRInt32 *aContextPosition,
|
||||
PRInt32 *aContextSize)
|
||||
PRInt32 *aContextSize,
|
||||
PRBool aUseBindAttr)
|
||||
{
|
||||
NS_ENSURE_ARG(aElement);
|
||||
NS_ENSURE_ARG(aOuterBind);
|
||||
@@ -371,7 +372,7 @@ nsXFormsUtils::GetNodeContext(nsIDOMElement *aElement,
|
||||
nsAutoString bindId;
|
||||
NS_NAMED_LITERAL_STRING(bindStr, "bind");
|
||||
aElement->GetAttribute(bindStr, bindId);
|
||||
if (!bindId.IsEmpty()) {
|
||||
if (!bindId.IsEmpty() && aUseBindAttr) {
|
||||
// CASE 1: Use @bind
|
||||
GetElementByContextId(aElement, bindId, aBindElement);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user