Fixes jsffi usage example in doc
This commit is contained in:
Jae Yang 2020-04-25 14:00:24 -04:00 • committed by GitHub
commit 362c8964bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@
## var document {.importc, nodecl.}: JsObject ## var document {.importc, nodecl.}: JsObject
## var console {.importc, nodecl.}: JsObject ## var console {.importc, nodecl.}: JsObject
## # import the "$" function ## # import the "$" function
## proc jq(selector: JsObject): JsObject {.importcpp: "$(#)".} ## proc jq(selector: JsObject): JsObject {.importcpp: "$$(#)".}
## ##
## # Use jQuery to make the following code run, after the document is ready. ## # Use jQuery to make the following code run, after the document is ready.
## # This uses an experimental ``.()`` operator for ``JsObject``, to emit ## # This uses an experimental ``.()`` operator for ``JsObject``, to emit