Recent

Author Topic: aEvent.currentTarget.ID error in pas2js trunk & Lazarus 2.1.0 [solved]  (Read 500 times)

Bazic

  • New member
  • *
  • Posts: 6

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][+][-]
  1. function TTetris.DoMouseClick(aEvent: TJSMouseEvent): boolean;

error is located in line 630:

Code: Pascal  [Select][+][-]
  1.   S:=aEvent.currentTarget.ID;

it needs to be corrected this way:

Code: Pascal  [Select][+][-]
  1.   S:=aEvent.currentTargetElement.id;

PascalDragon

  • Hero Member
  • *****
  • Posts: 2595
  • Compiler Developer
Re: aEvent.currentTarget.ID error in pas2js trunk & Lazarus 2.1.0 [solved]
« Reply #1 on: November 15, 2020, 12:28:40 pm »
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:

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

  • New Member
  • *
  • Posts: 12
  • Its my fortune to have it, its my fate to lose it.
Re: aEvent.currentTarget.ID error in pas2js trunk & Lazarus 2.1.0 [solved]
« Reply #2 on: December 04, 2020, 03:37:56 am »
pas2js/demo/pacman/upacman.pp (Line:763)
 S:=aEvent.currentTargetElement.id;  //currentTarget.ID;
----------------------------------
Duolong, please render me a fastest horse, I must  leave now!
----------------------------------

 

TinyPortal © 2005-2018