Add all public vars of cljs ajax core
This commit is contained in:
parent
7756155576
commit
0ceda6ec9f
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue