Project

General

Profile

Actions

Bug #15225

closed

Javascript Warning in Preload-Images because of uninitialized Variables

Added by Arne Bippes over 18 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2005-12-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.1
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

img9_0246_0_n=new Image(); img9_0246_0_n.src = "typo3temp/menu/282dff7f80.png";
img9_0246_0_h=new Image(); img9_0246_0_h.src = "typo3temp/menu/780d77cb38.png";
img14_8fcb_0_n=new Image(); img14_8fcb_0_n.src = "typo3temp/menu/ad9a9e6d69.png";
img14_8fcb_0_h=new Image(); img14_8fcb_0_h.src = "typo3temp/menu/8848231462.png";

it should be (just a "var" in front of the line):
var img9_0246_0_n=new Image(); img9_0246_0_n.src = "typo3temp/menu/282dff7f80.png";
var img9_0246_0_h=new Image(); img9_0246_0_h.src = "typo3temp/menu/780d77cb38.png";
var img14_8fcb_0_n=new Image(); img14_8fcb_0_n.src = "typo3temp/menu/ad9a9e6d69.png";
var img14_8fcb_0_h=new Image(); img14_8fcb_0_h.src = "typo3temp/menu/8848231462.png";

Patch is attached.

(issue imported from #M2061)


Files

diff_class.tslib_menu.php.diff (2.12 KB) diff_class.tslib_menu.php.diff Administrator Admin, 2005-12-19 20:52
diff_class.tslib_pagegen.php.diff (716 Bytes) diff_class.tslib_pagegen.php.diff Administrator Admin, 2005-12-19 21:02
Actions #1

Updated by Arne Bippes over 18 years ago

Another case with uninitialized variables:
- browserName = navigator.appName;
- browserVer = parseInt(navigator.appVersion);
+ var browserName = navigator.appName;
+ var browserVer = parseInt(navigator.appVersion);
var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
+ var version;

Actions #2

Updated by Not Only Pixel almost 14 years ago

No Javascript errors where found in image menu.

Tested with: IE6-8, FF 1-3, Chrome 4, Safari

Actions #3

Updated by Chris topher almost 14 years ago

Closed, no longer reproducable.

Actions

Also available in: Atom PDF