[Pas2js] Pas2js libjquery typos?

Macfly dev at aexnet.com.br
Wed Jun 26 21:05:12 CEST 2019


Hello,

In the Object declaration:
TJQuery = class external name 'JQuery' (TJSObject)

Should not the correct name be jQuery (with j minuscule)?

Because JQuery (with capital J) does not exist in the javascript context.

So if I need to access a static method like:

Pascal:
TJQuery.getJSON()


This is transcripeted to JS as:
JQuery.getJSON()

Which obviously fails.
Expected are jQuery.getJSON()


Another issue. In line 442 the function exports JQuery with j in capital:
Function JQuery(Const aElement : Array of TJSElement) : TJQuery; external
name 'JQuery';

Best regards!



--
Sent from: http://pas2js.38893.n8.nabble.com/


More information about the Pas2js mailing list