Commit graph

307 commits

Author SHA1 Message Date
Einar Norðfjörð
fa824ca080 always select exact route if it exists 2015-02-09 18:11:56 +00:00
webcss
96b1f9e791 handle mixed type children correctly - fixes #443 2015-02-07 00:18:07 +01:00
Shlomo Dalezman
da4ef441fd added multi argument brackets 2015-02-02 13:38:12 -05:00
Leo Horie
45ee2751e7 Merge pull request #434 from ciscoheat/redraw-context-fix
Fixed context when calling a module view during redraw.
2015-02-01 15:11:30 -05:00
webcss
e158b52c47 fix for #428 introduces new misbehaviour
The fix for #428 provided prevents entries beeing written to history. History.back() or hitting browsers back-button don't work anymore, since there are no history entries. 
This is because you are assigning the new path to route to to currentPath and compare these, which always turn out to be equal. Saving the currentPath before the assignment fixes this missbehaviour.
2015-01-30 11:20:53 +01:00
Andreas
5080db017f Fixed context when calling a module view during redraw. 2015-01-29 22:38:03 +07:00
fanlia
0ac28928f3 fix issue #424 2015-01-28 09:32:13 +08:00
Leo Horie
aacc618dfd #428 don't add history entry on reload from link 2015-01-26 22:08:31 -05:00
Leo Horie
f9df39f5f7 #425 fix querystring detection in pathname mode 2015-01-25 23:27:35 -05:00
Leo Horie
6c77586616 #426 make array-to-querystring serialization work like jquery 2015-01-25 22:49:46 -05:00
Leo Horie
509ecbe3d9 Merge pull request #421 from dudeman/next
remove script from parentNode since $document.body may have changed
2015-01-19 23:01:45 -05:00
Leo Horie
a04d67500e #420 allow unloading of modules 2015-01-19 22:29:12 -05:00
Leo Horie
fed82b2135 #382 don't render single empty space if not needed 2015-01-19 22:20:43 -05:00
Max Baumann
e0855cce65 remove script from parentNode since $document.body may have changed 2015-01-18 17:04:54 -08:00
Leo Horie
d418423eec revert #415 since it breaks build 2015-01-14 21:46:42 -05:00
Ondrej
9391a789ea fixes TypeError: Illegal Invocation in node-webkit
requestAnimationFrame, setTimeout and clearTimeout need to be called on the window object explicitely in node-webkit.
2015-01-14 22:13:21 +01:00
Barney Carroll
d874748c6f Merge branch 'next' of github.com:lhorie/mithril.js into next 2015-01-06 19:37:01 +00:00
Barney Carroll
18dd27a493 Removed decodeSpace function: fixes #399 2015-01-06 17:34:55 +00:00
Eirik S. Morland
6dd5c46090 Make code block comments the way closure compiler likes them. 2015-01-01 22:45:47 +01:00
Leo Horie
2a34765547 add comment for obscure snippet 2014-12-31 20:49:38 -05:00
Leo Horie
857ce0df99 Merge branch 'perf' into next 2014-12-31 17:22:58 -05:00
Leo Horie
fa04377a51 fix #380 correctly (see also #385) 2014-12-31 16:12:47 -05:00
Leo Horie
b4069e2391 Merge remote-tracking branch 'origin/next' into perf 2014-12-31 15:30:16 -05:00
Leo Horie
d4bfee425a #388 throw error if no root element 2014-12-31 15:28:39 -05:00
Leo Horie
cbedf999cd loop refactor 2014-12-12 09:30:48 -05:00
Leo Horie
6435a7c646 Merge branch 'next' into perf
Conflicts:
	mithril.js
2014-12-12 09:20:49 -05:00
Leo Horie
3073b27abd improve loop 2014-12-10 23:06:15 -05:00
Leo Horie
09b25cb803 #378 fix strategy none semantics 2014-12-10 22:34:20 -05:00
Leo Horie
cbdbdd7c60 don't throw error when using console.log in firefox 2014-12-09 11:20:40 -05:00
Leo Horie
f3076367ee #372 cache length in loops 2014-12-08 11:57:31 -05:00
Leo Horie
e453ec7ce3 #380 empty value attr in option should show up 2014-12-08 11:47:27 -05:00
Leo Horie
dc42632e5a #299 fix key bug when nulls are mixed in 2014-12-08 09:55:32 -05:00
Leo Horie
eb3951ce12 #379 fix equality checks 2014-12-06 14:29:59 -05:00
Leo Horie
5f12b23f37 #364 set input type as an attribute, not a property, because CSS 2014-12-01 11:03:37 -05:00
Leo Horie
c5939e6fac show error message if m.route.param is called before m.route(el, defRoute, routes) 2014-12-01 11:03:07 -05:00
Leo Horie
f99308c39c #362 add error for selector arg in m() 2014-11-28 12:45:41 -05:00
Leo Horie
c9c0250f12 short-circuit keys algorithm if no keys changed 2014-11-28 12:44:43 -05:00
Leo Horie
b6693c7f06 decrease memory reallocations 2014-11-25 21:27:55 -05:00
Leo Horie
985611baf4 fix key regression from perf optimization 2014-11-25 20:50:11 -05:00
Leo Horie
2110335f87 Merge branch 'next' into perf 2014-11-25 19:59:06 -05:00
Leo Horie
76aaa782d0 #358 ignore potential meaningless error 2014-11-25 19:46:50 -05:00
Leo Horie
6ef1f8ae2e don't duplicate route args when redirecting #352 2014-11-25 19:36:25 -05:00
Leo Horie
83bc89f188 #355 prevent interop problem w/ QUnit + requireJS 2014-11-24 10:01:54 -05:00
Leo Horie
903ec1496c Merge branch 'next' into perf 2014-11-17 23:13:36 -05:00
Leo Horie
1fce18069d improve comment clarity 2014-11-17 23:13:26 -05:00
Leo Horie
75567c68cc don't break input cursor in chrome 2014-11-17 23:03:13 -05:00
Leo Horie
5afefb30b8 const style 2014-11-14 23:37:36 -05:00
Leo Horie
b836cccb99 performance optimization: don't add key as an attribute 2014-11-14 23:35:06 -05:00
Leo Horie
1321aec9fb inline flatten 2014-11-14 22:54:16 -05:00
Leo Horie
6736537fcf remove dead code 2014-11-14 22:41:32 -05:00