Isiah Meadows
2c92d84058
Add support for object event handlers (using handleEvent)
...
- `handleEvent` is checked on dispatch, like in the DOM.
- Had to reorder attribute key checking so `undefined` events still got
removed.
- Drive-by: Optimize the initial attribute key checking a little.
- Drive-by: Fix changelog v2.0.0 link in TOC.
2017-08-25 06:06:46 -04:00
Isiah Meadows
dbbdb0664a
Reduce memory allocation/usage across multiple event handlers
...
- `handleEvent` is a very useful tool.
- Always use `addEventListener`/`removeEventListener`, since it's
required for this optimization.
- Change log updated.
- Drive-by: make DOM mock work with both event listener types.
- Drive-by: eliminate possibility of `Object.prototype` interference.
2017-08-25 05:19:30 -04:00
Ilya Sarantsev
9e6b175519
Handle shared attributes object in hyperscript ( #1941 )
2017-08-23 16:36:14 +03:00
Jim Kalafut
b59ab50ba3
docs: Fix typo ( #1940 )
2017-08-18 23:02:38 -07:00
spacejack
ae0b791530
Eleminate now-redundant if block. Add change-log notes.
2017-08-15 15:53:23 -04:00
Pierre-Yves Gérardy
2032131340
Merge pull request #1924 from tskillian/fixRequestContentHeaders
...
Fix Content-Type header bug (Issue #1919 )
2017-08-04 01:05:56 +02:00
tkilliansc
b4856a9ecd
fix issue 1919
2017-08-03 13:48:19 -07:00
Pierre-Yves Gérardy
423253f1a8
Move the #1921/#1922 line into the v1.1.4 change set
2017-07-31 12:28:40 +02:00
Pierre-Yves Gérardy
c96e085799
core: don't call onremove on the children passed to components that return from their view, fix #1921
2017-07-31 11:48:15 +02:00
Jared Morrow
1da69da4dd
docs: Fix mismatched brace in Authentication example ( #1917 )
2017-07-27 12:54:04 -07:00
Pierre-Yves Gérardy
5956314e36
Docs for async redraws and assorted changes (see #1592 ) ( #1901 )
2017-07-19 09:16:22 +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
Griffin
353bbe7fff
docs: Clarifying babel/webpack docs ( #1845 )
2017-07-12 20:38:36 -07:00
Pat Cavit
482f0e71b9
docs: readme rework ( #1898 )
2017-07-12 20:34:45 -07:00
theRefugee
9b6ec10a93
Update request.md
2017-07-12 15:20:43 +02:00
Pierre-Yves Gérardy
e5bce90613
v1.1.3 change log
2017-07-11 12:24:54 +02:00
Pierre-Yves Gérardy
ea708869ba
Change log typo and oversight
2017-07-11 11:45:43 +02:00
Pierre-Yves Gérardy
868372ac54
v1.1.2 change log
2017-07-11 10:38:23 +02:00
Isaac
f7c4284ffc
Update webpack.config.js (in JSX docs)
...
Webpack doesn't support relative paths in the output.path config parameter, so this updated code uses the 'path' module to resolve the relative path.
2017-06-26 16:13:37 -06:00
Isaac
6a65ebc9af
Use manual path resolution in webpack.config.js
...
Webpack doesn't support relative paths in the output.path config parameter, so this updated code uses the 'path' module to resolve the relative path.
2017-06-26 16:11:57 -06:00
Joshua Olson
7052b60d2c
Fix 'Github' typos
2017-06-25 11:54:11 -06:00
Pierre-Yves Gérardy
6a6b38aee7
Merge pull request #1790 from spacejack/tutorial-remove-interpolation
...
Remove url interpolation from tutorial app
2017-06-14 00:00:55 +02:00
Pierre-Yves Gerardy
b004c20f0c
Make m.redraw() strictly asynchronous
2017-06-13 15:20:29 +02:00
Scotty Simpson
dfcbc8e2b3
docs: Update request.md ( #1851 )
2017-05-12 09:40:28 -07:00
Pierre-Yves Gérardy
085f5642be
Docs: Correct typos [skip CI]
2017-05-04 16:28:06 +02:00
Pierre-Yves Gérardy
0a1c634d99
Clarify m.route.params in RouteResolver.onmatch
2017-05-04 16:05:39 +02:00
Yuri
a560bca85d
Improve the documentation of routing parameters
...
I was stuck on this for a while earlier today: it turns out that `m.route.param` will not return the right results in the `onmatch` function on a `RouterResolver`, though it will inside of a `render` function on the same. This behavior is documented in the `onmatch` section but not the `m.route.param` section, which is where I was looking when I ran up against this earlier.
From an API design perspective it would make sense to me for `m.route.param` to return valid results inside `onmatch`, but I don't know enough about Mithril's internals to know how complex it would be to implement.
2017-05-03 21:21:57 -04:00
Andrea Coiutti
af3da16832
docs: Add favicon ( #1839 )
2017-05-02 09:34:13 -07:00
Pat Cavit
bef58fdfa5
chore: Update repo references ( #1834 )
2017-05-02 09:24:12 -07:00
Kevin Cameron
e966025171
Correct example code
2017-05-01 22:54:05 -07:00
Scotty Simpson
414e74ba47
docs: Fix typo in es6.md ( #1827 )
2017-04-30 23:36:47 -07:00
Isiah Meadows
b24c37c42d
Revert "Pass vnode as second argument"
2017-04-28 16:40:13 -04:00
Scotty Simpson
0587139252
docs: Update components.md ( #1818 )
...
I went with "its", but "our" could work, too. Both, though — hm. Seems silly.
2017-04-27 16:49:19 -07:00
micellius
b6a251b5b8
docs(jsx.md): add missing "!"
...
Add missing "!" to result of interpolation for `{greeting + "!"}` expression
2017-04-27 17:21:00 +03:00
David
e26e1f10c0
docs: URL Param + Variadic route doc ( #1813 )
2017-04-26 09:34:28 -07:00
Isiah Meadows
040a70ff99
Merge pull request #1796 from isiahmeadows/vnode-event
...
Pass `vnode` as second argument
2017-04-24 14:40:23 -04:00
Pierre-Yves Gérardy
8416afb6b8
Merge pull request #1795 from tivac/code-of-conduct
...
Add code of conduct
2017-04-19 15:55:04 +02:00
Pat Cavit
034ef4d318
docs: add master -> next merge for package.json
2017-04-13 09:42:22 -07:00
cavemansspa
7ad1b2edcf
Add example for mounting a component with args
2017-04-12 10:23:50 -04:00
Pat Cavit
05990024e1
docs: flesh out releasing process further
2017-04-11 11:17:25 -07:00
Isiah Meadows
2fcaafd080
Merge pull request #4 from lhorie/next
...
Update fork
2017-04-11 13:35:35 -04:00
Isiah Meadows
a92ffb3077
Clarify events, document extra vnode property
2017-04-11 13:33:46 -04:00
Pat Cavit
3409a72c4e
docs: add code of conduct and nav link
2017-04-11 10:32:00 -07:00
Pierre-Yves Gérardy
2dc5522af5
Merge branch 'next' into load-mithril
2017-04-11 10:27:52 +02:00
Pat Cavit
94dfc52a98
docs: add simple scaffolding pen to intro section
2017-04-10 23:50:07 -07:00
Pat Cavit
4cfd0c4070
docs: load mithril on mithril.js.org
...
For futzing around in the dev console
2017-04-10 23:43:10 -07:00
Pat Cavit
451cf00951
docs: add incrementing value to repeated anchors
2017-04-10 23:31:56 -07:00
Pat Cavit
96fb9a5bbd
docs: add examples for tutorial
2017-04-10 23:31:44 -07:00
spacejack
5e654452e1
Remove url interpolation from tutorial app
2017-04-09 15:19:24 -04:00
Pat Cavit
9a54b12702
docs: fix some links
2017-04-06 21:01:52 +00:00