Commit graph

7 commits

Author SHA1 Message Date
Leo Horie
9bd0cd73fc inline Date.now, remove redundant comment 2016-07-30 14:55:34 -04:00
Pat Cavit
47b9aba680 Use Date.now() if available since it's faster 2016-07-29 23:18:11 -07:00
Leo Horie
9afefe0fd7 don't swallow redraws 2016-06-30 23:46:47 -04:00
Leo Horie
0005cf26ee refactor redraw into pubsub and autoredraw
- pubsub is a basic pubsub impl
- autoredraw is glue code to register callback to pubsub and onevent

moved e.redraw to autoredraw
2016-05-21 00:37:34 -04:00
Pat Cavit
04eaa25ab1 Support for skipping redraws (#1049)
Mostly useful for event handlers, setting `e.redraw = false` will prevent mithril from re-rendering.
2016-05-20 11:50:41 -07:00
Pat Cavit
2ca8fa6e66 Quiet some ESLint errors (#1060)
Some via config, a few via code edits
2016-05-19 22:18:31 -07:00
Leo Horie
977239d207 rename limiter to throttle and refactor
- don't inject raf/setTimeout since we can't really mock them w/ a good degree of timing accuracy anyways

fix some unrelated tests
2016-05-19 23:24:04 -04:00