mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 07:05:24 +00:00
Fix js strict warnings about redeclaration of vars and reference to undefined vars. sr=ben
This commit is contained in:
parent
e04fe867ca
commit
ceabfb187c
@ -90,7 +90,7 @@ function onLoadPageInfo()
|
||||
|
||||
/* Selected the requested tab, if the name is specified */
|
||||
/* if (window.arguments != null) { */
|
||||
if ("arguments" in window) {
|
||||
if ("arguments" in window && window.arguments.length > 1) {
|
||||
var tabName = window.arguments[1];
|
||||
|
||||
if (tabName)
|
||||
@ -112,7 +112,6 @@ function makeDocument(page, root)
|
||||
var lastModified;
|
||||
var lastMod = page.lastModified // get string of last modified date
|
||||
var lastModdate = Date.parse(lastMod) // convert modified string to date
|
||||
var lastModified;
|
||||
if (lastModdate) {
|
||||
var date = new Date(lastModdate);
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user