Issue Bug Closed

#15225Javascript Warning in Preload-Images because of uninitialized Variables

Arne Bippes 12/19/05, 20:52 updated 06/25/10, 15:26

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.