Changed events names to "create" and "destroy".

This commit is contained in:
hyatt%netscape.com 1999-06-09 01:11:22 +00:00
Родитель 68093a04cc
Коммит ecb23ec197
4 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -37,7 +37,7 @@ static char* mEventNames[] = {
"mouseout", "mousemove", "keydown", "keyup", "keypress",
"focus", "blur", "load", "unload", "abort", "error",
"submit", "reset", "change", "paint" ,"text",
"construct", "destruct"
"create", "destroy"
};
nsDOMEvent::nsDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent) {

Просмотреть файл

@ -340,11 +340,11 @@ nsresult nsEventListenerManager::GetIdentifiersForType(const nsString& aType, ns
aIID = kIDOMPaintListenerIID;
*aFlags = NS_EVENT_BITS_PAINT_PAINT;
} // extened this to handle IME related events
else if (aType == "construct") {
else if (aType == "create") {
aIID = kIDOMLoadListenerIID;
*aFlags = NS_EVENT_BITS_LOAD_CONSTRUCT;
}
else if (aType == "destruct") {
else if (aType == "destroy") {
aIID = kIDOMLoadListenerIID;
*aFlags = NS_EVENT_BITS_LOAD_DESTRUCT;
}

Просмотреть файл

@ -37,7 +37,7 @@ static char* mEventNames[] = {
"mouseout", "mousemove", "keydown", "keyup", "keypress",
"focus", "blur", "load", "unload", "abort", "error",
"submit", "reset", "change", "paint" ,"text",
"construct", "destruct"
"create", "destroy"
};
nsDOMEvent::nsDOMEvent(nsIPresContext* aPresContext, nsEvent* aEvent) {

Просмотреть файл

@ -340,11 +340,11 @@ nsresult nsEventListenerManager::GetIdentifiersForType(const nsString& aType, ns
aIID = kIDOMPaintListenerIID;
*aFlags = NS_EVENT_BITS_PAINT_PAINT;
} // extened this to handle IME related events
else if (aType == "construct") {
else if (aType == "create") {
aIID = kIDOMLoadListenerIID;
*aFlags = NS_EVENT_BITS_LOAD_CONSTRUCT;
}
else if (aType == "destruct") {
else if (aType == "destroy") {
aIID = kIDOMLoadListenerIID;
*aFlags = NS_EVENT_BITS_LOAD_DESTRUCT;
}