aEvent.currentTarget.ID error in pas2js trunk & Lazarus 2.1.0 [solved] lazarus / 76-Pas2JS ---------------------------------------------------------------------- Bazic · 2020-11-15 10:26 I tried to run tetris using last trunk version of pas2js & Lazarus 2.1.0 but still with error in utetris.pp, in onClick event handler: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i function TTetris.DoMouseClick(aEvent: TJSMouseEvent): boolean; error is located in line 630: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   S:=aEvent.currentTarget.ID; it needs to be corrected this way: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   S:=aEvent.currentTargetElement.id; ---------------------------------------------------------------------- PascalDragon · 2020-11-15 11:28 Quote from: Bazic on November 15, 2020, 11:26:49 amI tried to run tetris using last trunk version of pas2js & Lazarus 2.1.0 but still with error in utetris.pp, in onClick event handler: Fixed. Please report such things at the bugtracker in the future (especially as one of the main devs only reads the forum when notified). ---------------------------------------------------------------------- kwer · 2020-12-04 02:37 pas2js/demo/pacman/upacman.pp (Line:763)  S:=aEvent.currentTargetElement.id;  //currentTarget.ID;