(data x val)
using clj->js
jayq.core/html
and make jayq.core/inner
an alias to it and
deprecate.jayq.core/replace-with
Added jayq.core/prop
Added missing signatures of queue/dequeue and fix first arg on dequeue (it should be a jquery object instance instead of an HTMLElement)
jayq.utils/log
now returns the value it logs see https://github.com/ibdknox/jayq/pull/28jayq.util/clj->js
and jayq.util/map->js
as both were
made useless by the recent addition of cljs.core/clj->js
.To upgrade to this version of jayq, you will need to use a recent build of clojurescript: 0.0-1552+ or via lein-cljsbuild 0.2.10+.
jq.core/ajax
:data
encoding via pr-str when the
:contentType
option is set to either application/edn
application/clojure
text/clojure
text/edn
. The :contentType
value can be a string or a keyword, and can be followed by a charset.(jayq.core/ajax {:url "foo"
:type :post
:contentType :application/edn
:data {:bar [1 2 3]}})
Add second arity to jayq.core/inner
Add jayq.core/read, reads content of (script) element with clojure
data as content.
ex: <script type="text/edn">{:foo "bar"}</script>
jQuery.prototype.call
definition with IFn
extensionAdd jQuery.Deferred.*
wrappers
Add jayq.macros/let-ajax
jayq.macros/let-deferred
jayq.macros/do->
Performance improvements to $
css
attr
val
data
Clean up (remove some unecessary locals)
Add support for map arity to css
attr
data
(ex: (attr {:foo "bar" ...}))
Add offset & dimension functions
events type can be passed as a string argument
coll?
with sequential?
jayq.core/ajax
responses with text/clojure
text/edn
application/clojure
application/edn
mime types are
now read as clojure data before being passed to callbacks.:edn
& :clojure
dataType option support in $.ajaxclj->js
serialization of Persistent data
structure after the first chunk.closest
when used with keywordsCan you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close