зеркало из https://github.com/mozilla/pjs.git
Fix js strict warnings about redeclaration of vars and reference to undefined vars. sr=ben
This commit is contained in:
Родитель
7d3d8d381f
Коммит
a5c4e3745e
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче