Add all public vars of cljs ajax core

This commit is contained in:
Michiel Borkent 2022-11-23 11:39:41 +01:00
parent 7756155576
commit 0ceda6ec9f
2 changed files with 3 additions and 3 deletions

View file

@ -3,6 +3,7 @@
## Unreleased
- Fix for [44](https://github.com/babashka/scittle/issues/44): Honoring `SCITTLE_NREPL_WEBSOCKET_PORT` in `scittle.nrepl`
- Add all public vars of `cljs-ajax` `ajax.core`
## v0.3.10

View file

@ -1,13 +1,12 @@
(ns scittle.cljs-ajax
(:require [ajax.core :as ajx]
(:require [ajax.core]
[sci.core :as sci]
[scittle.core :as scittle]))
(def ans (sci/create-ns 'ajax.core nil))
(def ajax-namespace
{'GET (sci/copy-var ajx/GET ans)
'POST (sci/copy-var ajx/POST ans)})
(sci/copy-ns ajax.core ans))
(scittle/register-plugin!
::ajax