- Support $.contains function
- Add a few more user contributed patches
- Merge in a couple small pull requests. See commit log for details.
- Fixes for warnings with newer versions of the Clojurescript compiler
- Encode value in
(data x val)
usingclj->js
- Added
jayq.core/html
and makejayq.core/inner
an alias to it and deprecate.
- Added
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 #28
- Removed
jayq.util/clj->js
andjayq.util/map->js
as both were made useless by the recent addition ofcljs.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+.
- Update jayq.util/clj->js to use cljs.core's version of the same function if available + kill warnings with latest cljs rev on jayq.core
- Handles
jq.core/ajax
:data
encoding via pr-str when the:contentType
option is set to eitherapplication/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>
- Clean up the jQuery type extension and replace
jQuery.prototype.call
definition withIFn
extension
-
Add
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
- bugfix: revert previous commit replacing coll? with sequential?
- Removed externs file from the source, let the user grab the appropriate file from the google-closure repository.
- Replaced uses of
coll?
withsequential?
- Possible breaking change:
jayq.core/ajax
responses withtext/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 $.ajax- Fixed bug affecting
clj->js
serialization of Persistent data structure after the first chunk. - Improve coverage of jQuery API traversal & manipulation functions
- Consistency issue on
closest
when used with keywords