When using parenscript if I execute
(parenscript:ps (slot-value ($ "#mytextarea") 'selectionStart))
It produces the javascript
$('#mytextarea').selectionstart;
Note that selectionStart
is now selectionstart
. It lost the uppercase S on the Start
!
How do I keep that uppercase S around?
Parenscript will automatically convert from the lisp naming convention (dashes separating words) to CamelCase, so:
(parenscript:ps
(slot-value ($ "#mytextarea") 'selection-start))
results in
"$('#mytextarea').selectionStart;"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With