Liking cljdoc? Tell your friends :D
ClojureScript only.

reagent.interop


$macro

($ object member & args)

Access member in a javascript object, in a Closure-safe way. 'member' is assumed to be a field if it is a keyword or if the name starts with '-', otherwise the named function is called with the optional args. 'member' may contain '.', to allow access in nested objects. If 'object' is a symbol it is not allowed contain '.'.

($ o :foo) is equivalent to (.-foo o), except that it gives the same result under advanced compilation. ($ o foo arg1 arg2) is the same as (.foo o arg1 arg2).

Access member in a javascript object, in a Closure-safe way.
'member' is assumed to be a field if it is a keyword or if
the name starts with '-', otherwise the named function is
called with the optional args.
'member' may contain '.', to allow access in nested objects.
If 'object' is a symbol it is not allowed contain '.'.

($ o :foo) is equivalent to (.-foo o), except that it gives
the same result under advanced compilation.
($ o foo arg1 arg2) is the same as (.foo o arg1 arg2).
sourceraw docstring

$!macro

($! object field value)

Set field in a javascript object, in a Closure-safe way. 'field' should be a keyword or a symbol starting with '-'. 'field' may contain '.', to allow access in nested objects. If 'object' is a symbol it is not allowed contain '.'.

($! o :foo 1) is equivalent to (set! (.-foo o) 1), except that it gives the same result under advanced compilation.

Set field in a javascript object, in a Closure-safe way.
'field' should be a keyword or a symbol starting with '-'.
'field' may contain '.', to allow access in nested objects.
If 'object' is a symbol it is not allowed contain '.'.

($! o :foo 1) is equivalent to (set! (.-foo o) 1), except that it
gives the same result under advanced compilation.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close