changed name of onConstruction event to onload

This commit is contained in:
danm@netscape.com
1999-03-05 20:23:19 +00:00
parent f7bc492710
commit 650be52db4
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -870,7 +870,7 @@ void nsWebShellWindow::ExecuteJavaScriptString(nsString& aJavaScript)
/**
* Execute window onConstruction handler
* Execute window onLoad handler
*/
void nsWebShellWindow::ExecuteStartupCode()
{
@@ -883,9 +883,9 @@ void nsWebShellWindow::ExecuteStartupCode()
if (mCallbacks)
mCallbacks->ConstructBeforeJavaScript(mWebShell);
// Execute the string in the onConstruction attribute of the webshellElement.
// Execute the string in the onLoad attribute of the webshellElement.
nsString startupCode;
if (webshellElement && NS_SUCCEEDED(webshellElement->GetAttribute("onConstruction", startupCode)))
if (webshellElement && NS_SUCCEEDED(webshellElement->GetAttribute("onload", startupCode)))
ExecuteJavaScriptString(startupCode);
if (mCallbacks)