Dan Holmsand
f785362b46
Some cleanup
2015-09-10 21:27:02 +02:00
Dan Holmsand
0b77d9af31
Get rid of active?
2015-09-10 20:51:09 +02:00
Dan Holmsand
67a724b540
Cleaner update logic
2015-09-10 20:27:52 +02:00
Dan Holmsand
fe091ad5c1
Back to defining everything inside deftype
2015-09-10 19:53:24 +02:00
Dan Holmsand
80a3c27fac
Some performance tweaking
2015-09-10 18:30:00 +02:00
Dan Holmsand
c6ca75ff0e
Revert last commit
2015-09-10 17:43:07 +02:00
Dan Holmsand
e09534c8cd
Experiment with alternative to set
2015-09-10 17:40:55 +02:00
Dan Holmsand
31b06375ef
Use run instead of deref
2015-09-10 16:06:53 +02:00
Dan Holmsand
0634806104
wip
2015-09-10 15:14:20 +02:00
Dan Holmsand
02be9425e5
Move parts of Reaction to plain functions
2015-09-10 14:55:07 +02:00
Dan Holmsand
8766d722b8
Don't try to reposition cursor when input value isn't a string
...
Fixes #183
2015-09-07 09:45:02 +02:00
Dan Holmsand
41384d5438
Report component-path when errors happen during render
2015-08-31 18:56:27 +02:00
Dan Holmsand
c4cd8c2921
wip: tests pass
2015-08-31 11:36:42 +02:00
Dan Holmsand
be7bb69548
wip
2015-08-31 10:59:59 +02:00
Dan Holmsand
6c345db29e
Now almost working
2015-08-31 10:39:17 +02:00
Dan Holmsand
043c8b0dee
wip: sort of working
2015-08-31 10:18:21 +02:00
Dan Holmsand
1782ff1832
wip - not working
2015-08-31 10:05:53 +02:00
Dan Holmsand
829be2efa1
Start switch to three-state dirty status
2015-08-31 08:39:13 +02:00
Dan Holmsand
b77b182d67
Work around clojurescript problem with sorted-maps
2015-08-31 08:18:45 +02:00
Dan Holmsand
4ccec97274
Don't catch exceptions in render
2015-08-30 23:07:34 +02:00
Dan Holmsand
ea021d3b87
Don't try to unmount on error
...
React gets very confused when there are errors...
2015-08-30 21:53:23 +02:00
Dan Holmsand
3defd24c35
Add a test for component-path
2015-08-30 18:29:27 +02:00
Dan Holmsand
10562cfb9d
Add component-path, and use in errors and warnings
2015-08-30 18:14:54 +02:00
Dan Holmsand
57c747b358
Add asserts to adapt-react-class and reactify-component
2015-08-24 20:11:04 +02:00
Dan Holmsand
eed924311e
Add force-update
2015-08-20 14:59:13 +02:00
Dan Holmsand
5d24b9be65
Deprecate calling the result of create-class as a function
...
In the future, I'd like to make it possible to use Reagent classes
usable directly from React, in order to make interop easier.
2015-08-20 09:35:24 +02:00
Dan Holmsand
bf1626b5d2
Simplify input creation a bit
2015-08-20 09:34:50 +02:00
Dan Holmsand
5bbba3e30a
Make sure inputs don't lose focus
...
selectionStart/End should not be set on inputs that don't have focus
currently.
2015-08-19 10:50:53 +02:00
Dan Holmsand
6548e7ef76
Merge branch 'master' of https://github.com/holmsand/reagent
2015-08-19 10:17:17 +02:00
Walton Hoops
38a726e4b1
Merge pull request #126 from Day8/patch-79
...
Position cursor after an input's value has changed
2015-08-18 16:48:04 -06:00
Dan Holmsand
51048c7a7f
Avoid unnecessary warning about missing :key
...
:key is not necessary in seqs in render-to-string et al.
2015-07-31 16:18:51 +02:00
Dan Holmsand
4cd8ab6dff
Make extended hiccup syntax much faster
...
by taxing GC less
2015-07-31 08:20:18 +02:00
Dan Holmsand
f00ca03f70
Merge https://github.com/holmsand/reagent
2015-07-30 19:25:08 +02:00
Dan Holmsand
5e8b813963
Fix -swap! in ratom.cljs
2015-07-30 19:19:07 +02:00
Howard M. Lewis Ship
4d32b97ca6
Correct error in example in docstring
2015-06-25 11:44:09 -07:00
Howard M. Lewis Ship
4160fdfd35
Fix typo in docstring
2015-06-25 11:43:49 -07:00
Howard M. Lewis Ship
072043dba1
Use when rather than if
...
In this situation, only a keyword should be split on '>'; the other possibilities (string, symbol, native element) are not subject
to splitting into nested tags.
2015-06-25 11:42:18 -07:00
Howard M. Lewis Ship
3d6c2f5e3f
Implement nested Hiccup elements
2015-06-18 18:05:21 -07:00
Dmitri Sotnikov
32f1d9395d
Merge pull request #128 from Hardikus/rest-destructuring
...
Fix destructuring for variable arity
2015-06-16 14:45:51 -04:00
Dan Holmsand
2d6e74d477
Use :require-macros throughout
2015-05-31 11:57:16 +02:00
Dan Holmsand
569322949b
Take advantage of new figwheel
2015-05-31 11:51:11 +02:00
Dan Holmsand
05bb63f254
Update React to 0.13.3-0, and more
...
Newer ClojureScript, figwheel, Clojure, cljsbuild
2015-05-29 10:50:23 +02:00
Dan Holmsand
cdd3c851a0
Fix cursor bug
...
Cursor wasn't updated when changing both the cursor and an
underlying atom at once.
2015-05-25 21:31:43 +02:00
Hardik Bhadani
ecc7a9c4c3
Fix destructuring for variable arity
2015-05-14 00:25:28 +05:30
mike-thompson-day8
6319a968ac
Remove "number" and "email" from the list of input types supporting selection API
2015-05-12 09:04:22 +10:00
mike-thompson-day8
985641d847
Make cursor position work for <textarea>s
...
It turns out that the type attribute of a <textarea> is always "textarea"
http://www.w3.org/TR/2012/WD-html5-20121025/the-textarea-element.html#dom-textarea-type
2015-05-11 17:30:00 +10:00
mike-thompson-day8
90949431f5
Fix #79 - position cursor after resetting an input's value
2015-05-08 11:53:55 +10:00
Martin Klepsch
1711a291c1
require reagent.ratom macros in cljs namespace
2015-03-20 22:28:04 +01:00
Dan Holmsand
6009908d5d
Add some docs for force-update-all
2015-03-11 17:51:54 +01:00
Dan Holmsand
19a384443f
Make -deref in Reaction a little clearer
2015-02-11 06:47:11 +01:00