Commit graph

1137 commits

Author SHA1 Message Date
Marco Bolis
52f81ff569 Fix parentheses in link (#2300) 2018-11-15 12:34:02 -05:00
Scotty Simpson
52ccea2cad Component docs update: an effective compromise re: state & syntactic variance (#2294)
* Update components.md

* Update components.md

* Update components.md

* Update components.md

* Update docs/components.md

Co-Authored-By: CreaturesInUnitards <portrayme@mac.com>

* Update docs/components.md

Co-Authored-By: CreaturesInUnitards <portrayme@mac.com>

* Update docs/components.md

Co-Authored-By: CreaturesInUnitards <portrayme@mac.com>

* teeny clarification

* reasonably compromised language, I think
2018-11-14 19:38:25 -05:00
Isiah Meadows
4d579c50b6
Revert "Fix #1771 and probably others (#2286)" (#2299)
4f68984f2f
2018-11-14 19:26:23 -05:00
Isiah Meadows
638d72481c Update the changelog
- I missed that part when reviewing #2194
2018-11-14 15:49:05 -05:00
Isiah Meadows
4f68984f2f
Fix #1771 and probably others (#2286)
This is *super* subtle, and IMHO Chrome did exactly the wrong thing
here.
2018-11-14 15:35:00 -05:00
spacejack
76e585c523 Add Stream.lift (#1950)
* Add stream.lift and tests

* Add docs

* Add to change-log
2018-11-13 18:55:45 -05:00
spacejack
a147023f4e Docs - prioritize closure components for state (#2292)
* Emphasize closure components in components.md

* Use closure components for all stateful component examples

* Add change-log entry

* Edits and separate sections for closure, class & POJO state
2018-11-13 01:04:04 -05:00
Miguel Espinoza
561b13c8a4 Add example for m.route.set with params (#2229)
Add example on how to use m.route.set with params
2018-11-07 18:47:49 -05:00
Pierre-Yves Gérardy
d6489e3b3f Merge #2075 into next (#2175)
* fix: Access document.activeElement through a function that eats errors for IE (#2075)

* test: inline iframe.js so ospec doesn't try to run it
2018-11-07 18:42:50 -05:00
Isiah Meadows
6042b001f0
Add m.prop (#2268)
Fixes #2095
2018-11-07 12:18:55 -05:00
Scotty Simpson
9d2586df9c remove redundant changelogs for 1.1.4-6 (#2277) 2018-11-02 23:51:21 -04:00
spacejack
ea0ce7f762 Store normalized vnodes in the dom element. Add render tests. (#2266)
* Store normalized vnodes in the dom element. Add render tests.

* Add entry to change-log
2018-10-28 17:17:24 -04:00
Isiah Meadows
b9c3c6c9c8
Remove a section that's 1. buggy and 2. controversial [skip ci] (#2265)
See discussion in #2250 and #1986 for more details.
2018-10-28 17:00:47 -04:00
spacejack
0e6223da73 Add docs about using EventListener objects (#2260)
* Add docs about using EventListener objects

* Fix typo

* Less misleading description of event handlers

* Fix a typo + grammar mistake

* More grammar/typo fixes
2018-10-27 16:41:21 -04:00
Travis Horn
86549d3d48 Fix #2210 (#2259)
Changed the example command for Mithril Bundler to be more consistent with Webpack quick start.
2018-10-26 16:42:01 -04:00
Isiah Meadows
2635070734 Merge branch 'next' 2018-10-25 14:23:33 -04:00
Isiah Meadows
6fff24869a Update changelog in preparation for v2.0.0-rc [skip ci] 2018-10-25 14:11:10 -04:00
Isiah Meadows
88b17c1c60
Avoid triggering Object.prototype.__proto__ with keys (#2251)
This way, the diff algorithm works with untrusted keys.
2018-10-15 15:09:55 -04:00
Isiah Meadows
62eb081a13 Simplify element removal to save a few bytes
It's also a minor peephole optimization, but I saw bigger size wins, so
I'm citing that.
2018-09-22 12:02:58 -04:00
Isiah Meadows
1ecc30a064 Fix custom elements attribute application, improve key checking
- Fix custom elements attribute application to acknowledge that not all
  custom elements operate purely based on attributes. (Plus, those
  blasted things are verbose as heck when you're working with them in
  raw form. It's also not that uncommon for functionality to be exposed
  via property and *not* attribute.)
- Don't memoize the normalized value when we 1. only use it once in each
  branch, and 2. only use it for a few special cases.
- Centralize the "has property key" code, so it's easier to tune and
  read. I also inlined a couple functions while I was at it since they
  were small and only used once.
- Actually test for how attributes are applied to raw DOM elements vs
  when we choose to use keys. When I first developed the patch, it
  silently worked, when I should've been breaking things.
2018-09-20 15:08:49 -04:00
Boaz Blake
89d833e909 adding stephen hoyers how-to-mithril 2018-09-19 16:38:11 -04:00
Isiah Meadows
ad5118165c
Fix redundancy (#2213)
* Remove redundant empty fragment return

* Rebuild bundles

* Update changelog
2018-09-19 01:23:33 -04:00
Isiah Meadows
c703b03253
Unbreak accidental back-compat break with event optimization (#2222)
This was supposed to be purely additive. See here for more details:

https://github.com/MithrilJS/mithril.js/pull/1949#issuecomment-417824513
2018-09-18 10:14:21 -04:00
cavemansspa
e62f0f38f6 Doc update for unpkg src attr (#2205)
* Add https: to unpkg src attr

* [docs] Credit @cavemansspa
2018-08-21 18:40:15 +02:00
Stephan Hoyer
af90b6b4a6 Add support for setting responseType of xhr via m.request options 2018-08-20 11:29:36 +02:00
Rasmus Porsager
d64e0a950f Fix #1714 conditionally halting stream (#2200)
* Fix #1714 conditionally halting stream

* Add note in changelog
2018-08-08 15:06:21 +01:00
Martti Laine
fd7cf8041e [request] Clearer error message for JSON deserialization failure (#2195) 2018-08-06 13:35:50 +02:00
kevinkace
28a5c13027 Update onbeforeremove animation example to use animationend event 2018-06-28 23:00:18 +02:00
Pierre-Yves Gérardy
85c1e99d9d
[docs] Update the TOC of installation.md 2018-06-26 15:39:53 +02:00
Stephan Hoyer
4de59e5b33 Use parcel instead of webpack for quickstart. (#2182)
much simpler
2018-06-13 10:23:22 +01:00
Pierre-Yves Gérardy
fed0846a11 [docs] #2174 docs and change log 2018-06-07 18:09:38 +02:00
Pierre-Yves Gérardy
3f5cabc5c5 Chore: Normalize the way we use eslint-disable 2018-06-01 21:27:02 +02:00
Pierre-Yves Gérardy
4921083898 [render/render] Fix xlink:href handling 2018-06-01 21:27:02 +02:00
Pierre-Yves Gérardy
285cb5382f [render] cleanup and comments 2018-05-29 23:50:29 +02:00
Barney Carroll
1579fe8430
Do not normalise component children on ingestion (#2155)
* Do not normalise component children on ingestion

* Don't normalise vnode children

* Component hyperscript tests: children aren't normalised

* test, not text

* Update change log: #2155 & #2064
2018-05-29 10:53:16 +01:00
Henry
4e35d0591c quick grammar fix (#2163) 2018-05-24 16:23:20 -10:00
Barney Carroll
e1a50890e9 stream: Removed valueOf & toString methods (fixes #2150) (#2151)
* stream: Removed `valueOf` & `toString` methods (fixes #2150)

* Update stream documentation
2018-05-16 00:01:30 +02:00
Pierre-Yves Gérardy
93c84a5786 [docs] typo 2018-05-10 09:35:03 +02:00
Pierre-Yves Gérardy
d13a61a4d8 [docs] clarify the component/RouteResolver distinction 2018-05-10 09:34:04 +02:00
Pierre-Yves Gérardy
4823369abe
[docs] typo 2018-05-10 09:28:02 +02:00
Pierre-Yves Gérardy
567fe154e7
[docs] clarify the component/RouteResolver distinction 2018-05-10 09:13:57 +02:00
Scotty Simpson
f161a59343 Update animation.md 2018-05-05 16:39:22 +02:00
mar
e075de4c92 docs: Link to ospec/change-log.md, remove repeated lines 2018-05-04 21:36:19 +02:00
Adam Gamble
fb3c344055 Scan with halt (#1957)
* HALT if scan reducer doesn't change value

* Updated docs to reflect new scan behaviour with HALT
2018-05-03 16:52:33 +01:00
Pierre-Yves Gérardy
801bde219e [render/render] move keyed cached nodes when needed, fix diff semantics for cached nodes, fix #2132 2018-04-23 13:52:03 +02:00
Pierre-Yves Gérardy
9490950c30 [render/render] Simplify updateNodes, fix #2128 2018-04-23 13:52:03 +02:00
soulofmischief
898d0aec82 Fix url in vnodes.md
URL was being incorrectly parsed due to parentheses. The parenthesis have been replaced with UTF-8 encodings.
2018-04-22 00:56:21 +02:00
Pat Cavit
c335aa70ca
docs: latest site updates (#2126) 2018-04-20 08:36:08 -07:00
Pierre-Yves Gérardy
203df39c30 Remove the DOM nodes recycling pool (fix #1653, fix #2023) 2018-04-16 09:45:45 +02:00
Scotty Simpson
6f7f543b07 docs: awkward/redundant fix (#2120) 2018-04-13 22:35:04 -07:00