Commit graph

22 commits

Author SHA1 Message Date
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
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
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
Pierre-Yves Gérardy
fed0846a11 [docs] #2174 docs and change log 2018-06-07 18:09:38 +02:00
Leo Horie
810228c442 fix tables in mobile 2017-01-17 22:36:34 -05:00
Patrik Johnson
7a4349c332 Fix small typos in the rewrite docs (#1533) 2017-01-11 15:41:15 -08:00
Leo Horie
7c00aad19c beef up docs and defrag setup flow 2017-01-08 10:53:54 -05:00
Leo Horie
bedcd8bdbf update docs re:onbeforeremove and clean up 2016-12-26 12:28:13 -05:00
Leo Horie
cdb9017a72 update docs, add descriptions for api methods 2016-12-02 17:51:07 -05:00
Leo Horie
9f6a1086e4 Merge remote-tracking branch 'origin/rewrite' into rewrite
# Conflicts:
#	mithril.min.js
2016-12-01 01:50:12 -05:00
Leo Horie
87dcbbf5c7 small tweaks to docs 2016-12-01 01:49:19 -05:00
Barney Carroll
2e43bf4f7b Add vnode caching warning under hyperscript documentation 2016-11-27 15:16:55 +00:00
Scott Simpson
17ee04c00a fix missing return in BetterLabeledComponent view (#1332) 2016-09-20 11:09:41 -07:00
Scott Simpson
6252a00bed small fixes in hyperscript.md (#1330)
Moved SVG/MathML section down to reflect the order of the TOC
Renamed "Avoid Anti-patterns" to enable TOC link
2016-09-20 10:24:08 -07:00
ludbek
0a736b5e76 linked component doc 2016-08-03 21:43:54 +05:45
Leo Horie
bce2abbffd Merge remote-tracking branch 'origin/rewrite' into rewrite
Conflicts:
	docs/keys.md
	docs/signatures.md
	docs/v1.x-migration.md
	index.js
	ospec/bin/ospec.cmd
	request/request.js
	request/tests/test-xhr.js
	util/prop.js
	util/tests/index.html
	util/tests/test-prop.js
2016-06-20 09:34:14 -04:00
Leo Horie
ce0c30a235 update docs 2016-06-20 09:22:00 -04:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Leo Horie
4b6c4254ba s/shouldUpdate/onbeforeupdate 2016-06-06 09:59:35 -04:00
Leo Horie
7e98ad6d74 fix shouldUpdate docs 2016-05-26 15:26:04 -04:00
Leo Horie
e24e4e9a1a style fixes in docs 2016-05-19 01:46:46 -04:00
Leo Horie
cd8b8b12e6 Some documentation 2016-05-19 01:22:01 -04:00