Commit Graph

34 Commits

Author SHA1 Message Date
Stuart Mitchell 8caee1115b fixes bug introduced by 8af8c6840f 2015-07-17 11:51:34 +12:00
Earl St Sauver 9326a411e7 Simplify implementation of Middleware Compose
The implementation of middleware compose is duplicating behavior already
in compose.

`(apply comp [])` returns identity.
2015-07-11 11:52:23 +07:00
mike-thompson-day8 78dacf5ca1 Fix #65 2015-05-28 23:15:47 +10:00
mike-thompson-day8 b921fa497d More "error" use instead of "warn" 2015-05-02 10:49:27 +10:00
mike-thompson-day8 c1fe51ddfd Partially fix #43 by adding ability to clear both kinds of handlers. 2015-04-25 09:50:46 +10:00
mike-thompson-day8 6ed3ba1e1f Fix #42 2015-04-22 00:16:55 +10:00
mike-thompson-day8 f5ed759767 Incorporate changes from #46 2015-04-18 21:15:53 +10:00
mike-thompson-day8 76ee67de10 Improve comments and warnings.
Continue process of nicely naming of anon fns, so as to get better stack traces.
2015-04-18 17:59:40 +10:00
mike-thompson-day8 a5b1ccdb16 Add log-ex middleware. 2015-03-14 09:47:16 +11:00
Stuart Mitchell 6cb43207ec better printing of errors from re-frame 2015-03-11 16:46:16 +13:00
mike-thompson-day8 a180df85c8 core.sync completely trashes the stack in an exception. Print any exception to the console before that happens. 2015-03-06 12:44:22 +11:00
mike-thompson-day8 d49bb49fd3 Rename register-pure-handler 2015-03-05 10:40:02 +11:00
mike-thompson-day8 3540d7da9d Split handlers.cljs in two, creating router.cljs 2015-03-05 00:00:36 +11:00
mike-thompson-day8 48e058f6dc improve comments 2015-03-03 01:06:45 +11:00
mike-thompson-day8 95de45a252 WIP 2015-03-03 01:03:09 +11:00
mike-thompson-day8 f5df77163b Middleware can now be supplied as a vector (containing nils, which are ignored). This is going to make generating middleware much easier.
For example, Debug middleware can now more easily be conditionally added and removed.
2015-03-03 00:10:05 +11:00
mike-thompson-day8 7b0799c80f Split function. 2015-03-02 23:03:49 +11:00
mike-thompson-day8 6a3f2e4b74 Improve comments on handlers 2015-03-02 07:57:11 +11:00
mike-thompson-day8 1d2ffb0d4f Rename apply-event to trim-v, allow handler to get vector of middleware 2015-02-27 02:07:35 +11:00
mike-thompson-day8 44b50e4feb Tweaks and cleanup 2015-02-25 12:51:30 +11:00
mike-thompson-day8 474b2e4bac Middleware now working. Bump to version 0.1.6 2015-02-25 11:43:10 +11:00
mike-thompson-day8 947de41d02 Back to compiling (removed namespace cycle) 2015-02-25 09:53:04 +11:00
mike-thompson-day8 ab7e613cbb Introduce new middleware DO NOT USE YET. THIS PUSH DOES NOT EVEN COMPILE 2015-02-25 08:58:55 +11:00
mike-thompson-day8 a9c8d76e1e Tweaks mostly. 2015-02-22 22:28:40 +11:00
mike-thompson-day8 a3c88750e5 Re-work handlers, routers and dispatchers. More comments 2015-02-21 00:47:01 +11:00
mike-thompson-day8 7c1b48e3a6 Add ability to (dispatch [:flush-reagent]) 2015-02-20 16:46:40 +11:00
mike-thompson-day8 1fadc82700 Introduce a timeout into the router, so that the GUI gets a look in, if we have one event after another. 2015-02-18 19:43:50 +11:00
Stuart Mitchell f442460905 added a dispatch-sync 2015-01-06 10:49:20 +13:00
mike-thompson-day8 d733c9c6b1 Make dispatch async.
WARNING: not tested.
2014-12-20 13:12:40 +11:00
hipitihop a46ab9b345 - remove handlers/get-in-db
- switch project back to [lein-cljsbuild "1.0.3"]
2014-12-16 12:34:27 +10:00
hipitihop bac24cfd37 - typo and temporary re-instate of get-in-db to get refactors and unit tests running 2014-12-16 11:48:41 +10:00
mike-thompson-day8 8654613087 Split handlers from subscriptions 2014-12-15 22:56:32 +11:00
hipitihop d37f86989a - add re-frame as a project dependency
- move model/db , handlers & history from dj-scratchpad to re-frame
- introduce priviliged protocol history/reset-history! and call from bootstrap
- convert all requires to use new re-frame/handlers
- introduce demo.bootstrap to init system and trigger handler registrations (removed redundant requires elsewhere).
- call bootsrap from main.cljs
- update unit tests
2014-12-11 18:24:19 +10:00
mike-thompson-day8 5692a6f485 WIP 2014-12-08 14:48:59 +11:00