#55739, fix strict JS warnings, r=ben, sr=brendan

git-svn-id: svn://10.0.0.236/trunk@197076 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
shaver%mozilla.org
2006-05-17 02:27:38 +00:00
parent 3fb84e52d7
commit f3100453be
2 changed files with 7 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ function initPanel ( aPrefTag )
hPrefWindow.onpageload( aPrefTag )
else {
dump("*** queueing up a panel...\n");
queuedTag = aPrefTag;
window.queuedTag = aPrefTag;
}
}
@@ -275,7 +275,7 @@ nsPrefWindow.prototype =
onpageload:
function ( aPageTag )
{
if( !this.wsm.dataManager.pageData[aPageTag] )
if( !(aPageTag in this.wsm.dataManager.pageData) )
{
var prefElements = window.frames[this.contentFrame].document.getElementsByAttribute( "pref", "true" );
this.wsm.dataManager.pageData[aPageTag] = [];
@@ -313,7 +313,7 @@ nsPrefWindow.prototype =
}
this.wsm.setPageData( aPageTag ); // do not set extra elements, accept hard coded defaults
if( window.frames[ this.contentFrame ].Startup )
if( 'Startup' in window.frames[ this.contentFrame ])
{
window.frames[ this.contentFrame ].Startup();
}

View File

@@ -39,8 +39,10 @@
</script>
<script language="JavaScript">
<![CDATA[
_elementIDs = ["startupPage", "browserStartupHomepage", "alwaysCheckWhenDropOnHome", "bookmarksButton", "goButton",
"homeButton", "printButton", "searchButton" ];
var _elementIDs = ["startupPage", "browserStartupHomepage",
"alwaysCheckWhenDropOnHome", "bookmarksButton",
"goButton", "homeButton", "printButton",
"searchButton" ];
]]>
</script>