зеркало из https://github.com/mozilla/pjs.git
fixing small optimization oversight. based on pixleys code that was beta2+. optimization is not valid in this case. r=churchill
This commit is contained in:
Родитель
4870a516ec
Коммит
6c9a6ed3ce
|
@ -106,14 +106,14 @@ nsresult nsJSEventListener::HandleEvent(nsIDOMEvent* aEvent)
|
|||
//JS can't handle this event yet or can't handle it at all
|
||||
return NS_OK;
|
||||
}
|
||||
if (mReturnResult == nsReturnResult_eNotSet) {
|
||||
//if (mReturnResult == nsReturnResult_eNotSet) {
|
||||
if (eventString.EqualsWithConversion("error") || eventString.EqualsWithConversion("mouseover")) {
|
||||
mReturnResult = nsReturnResult_eReverseReturnResult;
|
||||
}
|
||||
else {
|
||||
mReturnResult = nsReturnResult_eDoNotReverseReturnResult;
|
||||
}
|
||||
}
|
||||
//}
|
||||
eventString.InsertWithConversion("on", 0, 2);
|
||||
}
|
||||
else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче