#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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user