Commit graph

253 commits

Author SHA1 Message Date
impinball
986dde6d5f Merge remote-tracking branch 'upstream/next' into speed, unfix "fixed" version
By "fixed", I mean "screwed up, not at all following the correct version
number, and refusing to ask on Gitter what the correct version really is, and
just assuming the wrong version despite hints all over the source screaming
'THIS IS THE CORRECT VERSION, YOU STUPID IDIOT!!!'".

I feel that should be a relatively accurate explanation of the mistake I made
while working on this patch (the specific commit that introduced it was
squashed in rebasing, and another commit was easier than a revert, since the
one that introduced it also entailed a few other things).
2015-07-23 05:26:31 -04:00
impinball
3de01a1554 Clean up tests, resolve style differences, reduce upstream diff
This is in preparation for a PR, to reduce potential for merge conflicts
with either my PR or others', since mine will modify a large amount of
the main file.
2015-07-23 05:25:18 -04:00
impinball
9ae592ee4d Do some local style modifications and profile.
1. Do some temporary style modifications to help make the code more readable
   for profiling (with help from ESLint).
2. Profile the code, and optimize accordingly.
2015-07-23 05:17:02 -04:00
Miles Matthias
d2812bd88d added version function to mithril and test for version function 2015-07-16 22:11:07 -06:00
Leo Horie
1e0ad6c3d7 ensure we can still redraw after a promise error that gets thrown by the exception monitor 2015-06-22 18:41:53 -04:00
Jason Staten
d89810234a accept component as first argument to m() 2015-06-01 15:11:44 -06:00
Leo Horie
2d5d042131 allow m.redraw(true) to force-render component 2015-05-05 21:16:29 -04:00
Gilbert
2a61907839 Test promise-like catch 2015-05-01 16:47:19 -05:00
Leo Horie
8214d56411 clean up 2015-04-21 21:45:33 -04:00
Leo Horie
926ed2d692 teardown #571 test properly 2015-04-21 20:55:23 -04:00
Leo Horie
16bad63113 Merge pull request #575 from tobscure/redraw-all-fix
Add test case for #571
2015-04-21 20:54:23 -04:00
Leo Horie
8f9cbb751f teardown route tests properly 2015-04-21 20:53:54 -04:00
Toby Zerner
337ec325b3 Add test case 2015-04-22 07:31:59 +09:30
Leo Horie
d6911d105b clean up unused test code 2015-04-21 09:24:13 -04:00
Leo Horie
dbee97bf04 ensure component lifecycle works for components with implicit controllers 2015-04-21 09:23:55 -04:00
Leo Horie
15c0686b27 prevent early redraw of component w/ routed async components 2015-04-20 12:41:51 -04:00
Leo Horie
cf1f316bee don't redraw component before async service finishes 2015-04-20 11:20:04 -04:00
Leo Horie
b847ca1067 add regression test 2015-04-18 09:17:48 -04:00
Leo Horie
fce5f4b86f prevent dom recreation if only class value changed 2015-04-15 22:40:50 -04:00
Leo Horie
94d804d850 #554 don't initialize ctx.retain 2015-04-14 22:47:56 -04:00
Leo Horie
ce883b4089 #555 don't cache controller if redraw strategy is all 2015-04-14 21:38:21 -04:00
Leo Horie
f0f1e88170 #551 don't destroy root if forced synchronous redraw 2015-04-13 23:04:04 -04:00
Leo Horie
2923104d27 clean up 2015-04-13 08:29:03 -04:00
Leo Horie
9e558c199c #544 ignore class: undefined 2015-04-11 20:14:43 -04:00
Leo Horie
465632b1c3 Merge branch 'next' into components 2015-04-09 22:46:25 -04:00
Leo Horie
9e8dc6998d rework api 2015-04-09 22:44:45 -04:00
Leo Horie
f7413dc6e3 fix svg tests 2015-04-01 12:31:39 -04:00
Leo Horie
f85e3a675c split into m.component and m.mount, deprecate m.module 2015-03-31 15:53:41 -04:00
Leo Horie
ba26db057e Merge remote-tracking branch 'origin/next' into components 2015-03-31 10:50:41 -04:00
Leo Horie
b111d058be fix regression caused by #524 2015-03-31 10:50:19 -04:00
Leo Horie
1d0aa035c6 add test for #523 2015-03-30 14:53:03 -04:00
Leo Horie
dab565727c Merge branch 'next' into components 2015-03-30 13:27:17 -04:00
Leo Horie
8d9fa8ff04 remove timing code 2015-03-30 13:26:56 -04:00
Leo Horie
648f4734b5 #524 fix diff bug when mixing undefined in a tree 2015-03-30 13:25:32 -04:00
Leo Horie
8b1a58bc51 Merge branch 'next' into components 2015-03-27 11:58:59 -04:00
Leo Horie
9748b6ece4 #454 fix regression 2015-03-27 11:55:09 -04:00
Leo Horie
1586d8aaa1 Merge remote-tracking branch 'origin/next' into components 2015-03-26 21:14:49 -04:00
Leo Horie
f7cacb7a0b #507 fix diff regression when mixing elements and text nodes 2015-03-26 21:14:30 -04:00
Leo Horie
9ada8111d7 Merge branch 'next' into components
Conflicts:
	mithril.d.ts
2015-03-25 22:07:11 -04:00
Leo Horie
6f832a7040 #501,#502,#504 buildQueryString and parseQueryString fixes and tests 2015-03-25 21:54:36 -04:00
Leo Horie
9f110774aa #510 allow recursive nesting of components 2015-03-24 22:18:06 -04:00
Leo Horie
c1ea98fd09 Merge branch 'next' into components 2015-03-24 20:23:39 -04:00
Leo Horie
0ed23d4fa3 push test 2015-03-23 22:49:15 -04:00
Leo Horie
c52060a670 Merge branch 'next' into components 2015-03-13 23:23:16 -04:00
Leo Horie
904f4ee34a #463 don't try to manage 3rd party dom element when using keys 2015-03-13 23:22:54 -04:00
Leo Horie
9a9f0bd08e Merge remote-tracking branch 'origin/next' into components 2015-03-13 22:55:02 -04:00
Leo Horie
8cc4a862fe #413 fix ctx.retain bug 2015-03-13 22:54:46 -04:00
Leo Horie
fdbbe7f78f #481 recreate controller if only component type changes 2015-03-11 21:18:13 -04:00
Leo Horie
114ebec22f Merge remote-tracking branch 'origin/next' into components 2015-03-11 09:52:56 -04:00
Leo Horie
b8a7d7217d #476 fix conditional 2015-03-09 21:30:15 -04:00