changed name of onConstruction event to onload

git-svn-id: svn://10.0.0.236/trunk@22925 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com
1999-03-05 20:23:19 +00:00
parent 1cbb8d488d
commit 5a423eb9bb
2 changed files with 4 additions and 4 deletions

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)