Commit graph

885 commits

Author SHA1 Message Date
robinchew
db2a12dec9 Trying to fix #1916 (#1918)
* Trying to fix #1916

* Remove test for rendering select options. Add back after resolving issue #1978.

* Add #1916 fix to change log.

* Revert "Remove test for rendering select options. Add back after resolving issue #1978."

This reverts commit d4c1be7c2319adf744f78ca787485f52be869208.

* Comment on why failing test for #1916 is commented out.
2017-10-31 20:37:51 +01:00
Patrik Johnson
131e61002e Enable setting navigation options with m.route.link API 2017-10-29 12:21:23 +02:00
Isiah Meadows
3c608f26b7
Merge pull request #1984 from RodericDay/newlines-in-error-messages
Handle newlines in error messages, fixes #1495
2017-10-28 20:20:34 -04:00
Sage Gerard
f88da1c6da Clarify source of 2nd render pass re: preloading data
While the docs do say that a second render pass for preloaded data comes
from request completion, the example code for preloading data suggests that
a promise chain returned from `oninit` has a role to play in controlling the
second render pass.

The docs should make explicit where the redraw is initiated so the reader
does not mistakingly believe that `oninit()` retuning a promise changes
anything.
2017-10-27 15:25:34 -04:00
Pat Cavit
bd83b32709 docs: Add ospec releasing process & TOC 2017-10-17 15:37:43 -07:00
Pat Cavit
5400501aa7 docs: reformat & flesh out webpack quickstart
Fixes #1995
2017-10-17 05:36:31 +00:00
Pat Cavit
666b7832e1 docs: add v1.1.5 TOC entry 2017-10-16 08:56:24 -07:00
valtron
622e009811 recycling => shouldRecycle, Fix #1992 (#1993)
* Fix #1992

* doc in changelog

* add test for #1992
2017-10-16 08:38:44 +02:00
Pierre-Yves Gérardy
0691662fd4 change log: add v1.1.5 in next 2017-10-14 08:50:15 +02:00
Pat Cavit
06aee72f41 docs: fix v1.1.4 link 2017-10-14 06:09:46 +00:00
Mateusz Jaworski
8b56c70911 fix: Allow for changing focus in lifecycle hooks (#1988) 2017-10-13 22:31:03 -07:00
Roderic Day
8fe7088398 Handle newlines in error messages, fixes #1495 2017-10-10 23:10:06 -04:00
Isiah Meadows
ae27c0ff18 Merge pull request #1977 from isiahmeadows/remove-legacy-state
Remove support for `vnode.state = ...`
2017-10-04 18:00:16 -04:00
Vasil Rimar
000cc8382a docs: Fix typos (#1981) 2017-10-03 13:05:36 -07:00
Isiah Meadows
19d2ba316c Remove support for vnode.state = ...
- Remove docs for it
- Remove tests for it
- Add runtime check for unexpected reassignment, since we can't freeze
  the property (we internally have to be able to modify it)
2017-10-02 19:57:48 -04:00
Isiah Meadows
348bed0a7e Allow xlink:href to get removed, fix option.value in mock 2017-10-01 19:34:12 -04:00
Sultan Tarimo
ce025e73fa Fix menu css z-index 2017-09-27 03:11:02 +03:00
Isiah Meadows
98933b8bc1 Merge pull request #1949 from isiahmeadows/optimize-events
Optimize events, support objects with `handleEvent`
2017-09-17 20:38:08 -04:00
matildasmeds
e7d0e5a506 docs: Fix typo in css.md 2017-09-16 14:13:02 +02:00
matildasmeds
40229a1ab9 docs: reorder lifecycle methods to match actual event order 2017-09-15 16:41:14 +02:00
Pat Cavit
18c2b262ad docs: clarify PR process 2017-09-15 06:11:46 +00:00
Matilda Smeds
685cdedc62 docs: Fix typo (#1968) 2017-09-14 23:10:11 -07:00
Matilda Smeds
12d9085fe7 docs: Consistent filepath comments to tutorial (#1965) 2017-09-11 23:09:44 -07:00
Henrik Glasø Skifjeld
b26e67d1e9 docs: Fix typo in jsx docs (#1959) 2017-09-05 09:50:11 -07:00
Isiah Meadows
d150e71a85 Merge MithrilJS/next into optimize-events 2017-09-01 15:38:53 -04:00
Rasmus Porsager
6083c67f07 Update change-log.md 2017-09-01 17:58:12 +02:00
Stephan Hoyer
d8113a4470 Adapt change-log 2017-08-31 19:31:08 +02:00
Isiah Meadows
5209071011 Merge next into optimize-events 2017-08-31 05:43:39 -04:00
Jackson Nowotny
5303e70fde fixing merge conflicts 2017-08-29 10:30:45 -05:00
Jackson Nowotny
849e862413 Fixing IE bug causing active element to be null causing render function to throw error 2017-08-29 10:27:58 -05:00
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