зеркало из https://github.com/mozilla/pjs.git
fix 61471, a=ben
This commit is contained in:
Родитель
de135d1a06
Коммит
8cbc25f19b
|
@ -896,7 +896,7 @@ nsXBLBinding::InstallProperties(nsIContent* aBoundElement)
|
||||||
PR_FALSE,
|
PR_FALSE,
|
||||||
&getFunc);
|
&getFunc);
|
||||||
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
|
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
|
||||||
attrs |= JSPROP_GETTER;
|
attrs |= JSPROP_GETTER | JSPROP_SHARED;
|
||||||
}
|
}
|
||||||
|
|
||||||
// try for first <setter> tag
|
// try for first <setter> tag
|
||||||
|
@ -934,7 +934,7 @@ nsXBLBinding::InstallProperties(nsIContent* aBoundElement)
|
||||||
PR_FALSE,
|
PR_FALSE,
|
||||||
&setFunc);
|
&setFunc);
|
||||||
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
|
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
|
||||||
attrs |= JSPROP_SETTER;
|
attrs |= JSPROP_SETTER | JSPROP_SHARED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((getFunc || setFunc) && classObject) {
|
if ((getFunc || setFunc) && classObject) {
|
||||||
|
|
|
@ -896,7 +896,7 @@ nsXBLBinding::InstallProperties(nsIContent* aBoundElement)
|
||||||
PR_FALSE,
|
PR_FALSE,
|
||||||
&getFunc);
|
&getFunc);
|
||||||
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
|
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
|
||||||
attrs |= JSPROP_GETTER;
|
attrs |= JSPROP_GETTER | JSPROP_SHARED;
|
||||||
}
|
}
|
||||||
|
|
||||||
// try for first <setter> tag
|
// try for first <setter> tag
|
||||||
|
@ -934,7 +934,7 @@ nsXBLBinding::InstallProperties(nsIContent* aBoundElement)
|
||||||
PR_FALSE,
|
PR_FALSE,
|
||||||
&setFunc);
|
&setFunc);
|
||||||
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
|
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
|
||||||
attrs |= JSPROP_SETTER;
|
attrs |= JSPROP_SETTER | JSPROP_SHARED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((getFunc || setFunc) && classObject) {
|
if ((getFunc || setFunc) && classObject) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче