[Pas2js] Pas2js libjquery typos?
Michael Van Canneyt
michael at freepascal.org
Thu Jun 27 08:24:58 CEST 2019
Hello,
You are right.
I fixed the case in these 2 cases.
Michael.
PS. If you want to write to the mailing list, you must subscribe yor email
address, see the URL at the bottom.
On Wed, 26 Jun 2019, Macfly wrote:
> 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/
> _______________________________________________
> Pas2js maillist - Pas2js at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js
More information about the Pas2js
mailing list