Commit graph

148 commits

Author SHA1 Message Date
Isiah Meadows
462fb659d7
Fix event handler this value, simplify redraw handling (#2320)
Shaves 10 bytes off the bundle from smaller name + reduced indirection
2018-12-03 06:35:27 -05:00
Isiah Meadows
4a641092dc
Officially drop IE9-10 support, pull out our hacks (#2296)
- I also fixed a bunch of related comments
- I had to polyfill `requestAnimationFrame` for Node
- Drive-by: run `eslint . --fix`
- Drive-by: update transpiling info in CONTRIBUTING.md
- Drive-by: we aren't the only ones going semicolon-free
2018-11-27 18:04:15 -05:00
magikstm
e64a322bcf Correct test scripts 2017-12-30 04:44:00 -05:00
Patrik Johnson
131e61002e Enable setting navigation options with m.route.link API 2017-10-29 12:21:23 +02:00
Pierre-Yves Gérardy
8a4280eb42 api/redraw, console check for IE9 compat. 2017-09-25 17:03:48 +02:00
Pierre-Yves Gérardy
cf9a31b7b0 api/redraw: Log render() errors. 2017-09-24 21:09:36 +02:00
Pierre-Yves Gérardy
8ab31790ab Merge pull request #1592 from pygy/async-redraw
Make m.redraw() purely asynchronous, add m.redraw.sync()
2017-07-17 23:16:44 +02:00
Pierre-Yves Gérardy
4df43499be Merge pull request #1889 from pygy/fix-1857
Don't overwrite the options object when redirecting from onmatch with m.route.set
2017-07-06 21:10:03 +02:00
Pierre-Yves Gérardy
198f9ca7a9 Reset e.redraw when it was set to false. fixes #1850 2017-07-06 19:48:47 +02:00
Pierre-Yves Gérardy
67b11f156a Add a test to ensure that e.redraw is cleared if it was false 2017-07-06 19:48:47 +02:00
Pierre-Yves Gérardy
a867754d6a Don't overwrite the options object when redirecting from onmatch with m.route.set, fix #1857 2017-07-05 23:58:01 +02:00
Pierre-Yves Gérardy
0e0ed7c45d Lint 2017-06-14 00:15:08 +02:00
Pierre-Yves Gérardy
7de0124339 Tests for m.redraw.sync() 2017-06-13 23:22:25 +02:00
Pierre-Yves Gérardy
ccb3d61675 Make redraw monolithic, add m.redraw.sync 2017-06-13 16:27:54 +02:00
Pierre-Yves Gerardy
b004c20f0c Make m.redraw() strictly asynchronous 2017-06-13 15:20:29 +02:00
Gyandeep Singh
daf5a64697 Chore: Fix lint issues and add indent with tabs 2017-03-11 15:54:41 -06:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Pierre-Yves Gerardy
2196f5c909 Add test-utils/components.js to index.html where needed 2017-02-21 09:16:08 +01:00
Pierre-Yves Gerardy
fca89f987f Tests: enable the three kind of components in all related files but api/tests/test-route.js 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
ac38335453 Tests: Wrap some component definitions in createComponent() calls
These are the ones that would have been tedious to automate.
jscodeshift will handle the remaining ones
2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
f96319e6f6 Tests: add dummy forEach blocks around sections with components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
a8e5189f0b Tests: factory => closure components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
d7f39a8254 Tests: group together tests with/without components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
f273b012c9 Add support for (m.mount + m.route) × (factory + constructible) components 2017-02-15 21:58:42 +01:00
Pierre-Yves Gerardy
f4fb5ac4be Tests for routes that resolve to class and factory components 2017-02-15 21:58:41 +01:00
Pierre-Yves Gerardy
9e65e6bf47 Tests for mounting class and factory components 2017-02-15 21:58:41 +01:00
Leo
a89e8cd405 add docs about mixed keys 2017-02-03 22:56:34 -05:00
Leo
9d5f686bbd #1579 prevent infinite loop in non-existent default route 2017-02-03 22:21:14 -05:00
Pat Cavit
d119accb21 fix: m.route.param, not m.route.params 😓 2017-01-11 15:14:29 -08:00
Pat Cavit
2cdd8a96d1 tests: undefined until a route has been matched 2017-01-11 14:25:19 -08:00
Pat Cavit
834dd02610 feat: bring back m.route.params()
Because it's annoying only having route params available to the
top-level components within a route.
2017-01-11 14:23:42 -08:00
Leo Horie
9ad16858a5 #1520 ospec: report duplicate test names 2017-01-08 13:05:27 -05:00
Leo Horie
78b9a082ac Merge remote-tracking branch 'origin/rewrite' into rewrite
# Conflicts:
#	api/router.js
2016-12-26 12:20:03 -05:00
Leo Horie
e8f36e4e26 don't break back button on bail 2016-12-26 12:18:51 -05:00
Bryce Gibson
eadd9a0768 Ensure the test checks the right thing. 2016-12-24 09:36:24 +11:00
Leo
d42d728681 fix test 2016-12-23 08:52:09 -05:00
Bryce Gibson
f4084671bc Typo. 2016-12-22 21:16:32 +11:00
Bryce Gibson
088c41a47f Test precondition. 2016-12-22 21:16:32 +11:00
Bryce Gibson
b6daeaab5a Fix back button for default route. 2016-12-22 21:16:24 +11:00
Pierre-Yves Gerardy
703aab7905 [router] Fix hopefully the last race condition 2016-12-09 11:13:42 +01:00
Pierre-Yves Gerardy
605fa44711 [api/router] Test for two deferred onmatch racing 2016-12-08 15:18:37 +01:00
Pierre-Yves Gerardy
f8bb81f539 [api/router] simplify the route finalization logic 2016-12-07 23:06:02 +01:00
Pierre-Yves Gerardy
3a671fc5ca [router] add tests for onmatch corner cases 2016-12-07 17:07:37 +01:00
Leo Horie
f1f52445ec more router fixes 2016-12-07 07:57:58 -05:00
Leo Horie
992aa30ccc fix m.route.link and m.route.set history replacement 2016-12-06 23:29:15 -05:00
Leo Horie
37cb9a0622 test some more routeresolver cases 2016-12-06 21:59:45 -05:00
Leo Horie
c2acdf6f4a fix and test some edge cases in router 2016-12-06 19:59:39 -05:00
Leo Horie
8bc3c2b4d4 Merge remote-tracking branch 'origin/rewrite' into rewrite 2016-12-06 16:53:31 -05:00
Leo Horie
d8ad94adb2 fix invalidation test 2016-12-06 16:53:16 -05:00
Pierre-Yves Gerardy
650f7c4f3b [router] remove logic made redundant by promise use 2016-12-06 21:44:49 +01:00