Commit graph

2663 commits

Author SHA1 Message Date
RobertAKARobin
23e4a57114 Put Stream in IIFE so variables aren't global
...when imported into the browser via <script> tags.
2017-03-03 20:44:41 -06:00
Leo Horie
dc875fdbd3 Merge pull request #1662 from spacejack/stream-scan-types
Add stream/scan, stream/scanMerge type definitions
2017-03-02 20:05:07 -05:00
Leo Horie
5a9d7201e3 Merge pull request #1659 from barneycarroll/patch-13
Warn about data models w key props passed as attrs
2017-03-02 20:04:14 -05:00
Gandalf-the-Bot
38db32e8b7 Bundled output for commit 9d6a5e51eb [skip ci] 2017-03-02 19:29:12 +00:00
Isiah Meadows
9d6a5e51eb Merge pull request #1674 from pygy/fix-state-initialization
Fix state initialization
2017-03-02 14:28:16 -05:00
Isiah Meadows
aaa6de784b Merge pull request #1665 from barneycarroll/patch-14
Docs: component props aren't copied to instances
2017-02-27 10:44:32 -05:00
Barney Carroll
57d3de1e5c Docs: component props aren't copied to instances 2017-02-26 17:29:43 +00:00
Isiah Meadows
aefee3b88e Merge branch 'test-all-component-kinds' of https://github.com/pygy/mithril.js into next 2017-02-25 23:00:20 -05:00
pixelmike
70bf37cba6 Add stream/scan, scanMerge types 2017-02-25 18:34:32 -05:00
Gandalf-the-Bot
64792cbb11 Bundled output for commit 60e8f307f1 [skip ci] 2017-02-25 20:55:13 +00:00
Pierre-Yves Gérardy
60e8f307f1 Fix state initialization (#1652)
* Add test-utils/components.js and its tests

* Tests: group together tests with/without components

* Tests: factory => closure components

* Tests: add dummy forEach blocks around sections with components

* Tests: render/test-components tweaks

* Tests: Wrap some component definitions in `createComponent()` calls

These are the ones that would have been tedious to automate.
jscodeshift will handle the remaining ones

* Tests: wrap the rest of the components definitions

* Tests: enable the three kind of components in all related files but api/tests/test-route.js

* Add test-utils/components.js to index.html where needed

* Tests: Some more render/tests/test-component.js refactoring

* Tests: enable tests for #1638

* fix #1638

* Test: ensure that recycled components get a fresh state

* Tests: add a test for onbeforeupdate and recycled nodes

* Fix recycled components initialization
fix #1641
2017-02-25 15:53:51 -05:00
Barney Carroll
97c60f9046 Close code blocks! 2017-02-24 13:35:42 +00:00
Barney Carroll
71dcde6adf Warn about data models w key props passed as attrs
Hint to avoid problems such as those found here [February 23, 2017 6:28 PM](https://gitter.im/lhorie/mithril.js?at=58af29c47ceae5376a2d470e)
2017-02-24 10:54:07 +00:00
Pierre-Yves Gerardy
3e7649ef06 Fix recycled components initialization
fix #1641
2017-02-24 09:26:26 +01:00
Gandalf-the-Bot
3786373b58 Bundled output for commit ed5d9a2711 [skip ci] 2017-02-23 23:46:47 +00:00
Leo
ed5d9a2711 update linter 2017-02-23 18:45:47 -05:00
Leo
7f12a7e940 rebuild 2017-02-23 18:42:27 -05:00
Leo
e019c8131c fix merge conflicts for #1610 2017-02-23 18:41:46 -05:00
Gandalf-the-Bot
c501f0fd81 Bundled output for commit d29c16e0a6 [skip ci] 2017-02-23 23:40:18 +00:00
Leo Horie
d29c16e0a6 Merge pull request #1645 from shibukawa/fix/request_use_body
When method is GET and TRACE, useBody becomes always false
2017-02-23 18:39:26 -05:00
Pierre-Yves Gerardy
6a7144fc89 Tests: add a test for onbeforeupdate and recycled nodes 2017-02-21 09:17:00 +01:00
Pierre-Yves Gerardy
e496f7bfa6 Test: ensure that recycled components get a fresh state 2017-02-21 09:17:00 +01:00
Pierre-Yves Gerardy
7668ddd120 fix #1638 2017-02-21 09:17:00 +01:00
Pierre-Yves Gerardy
fc038f9d85 Tests: enable tests for #1638 2017-02-21 09:17:00 +01:00
Pierre-Yves Gerardy
1dd5fe3101 Tests: Some more render/tests/test-component.js refactoring 2017-02-21 09:17:00 +01:00
Pierre-Yves Gerardy
2196f5c909 Add test-utils/components.js to index.html where needed 2017-02-21 09:16:08 +01:00
Isiah Meadows
1a4bcc44e6 Keep the bundles out of the diffs
Makes reviewing a little easier.
2017-02-20 18:32:20 -05:00
Leo
65941d1416 document classes 2017-02-19 08:29:35 -05:00
Leo
271ef96fef Merge remote-tracking branch 'origin/next' into next 2017-02-19 08:27:48 -05:00
Leo
818c13dba9 fix example 2017-02-19 08:27:31 -05:00
Yoshiki Shibukawa
b86805ada3 when method is GET and TRACE, useBody becomes always false 2017-02-19 22:03:44 +09:00
Pierre-Yves Gerardy
fca89f987f Tests: enable the three kind of components in all related files but api/tests/test-route.js 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
24243dba94 Tests: wrap the rest of the components definitions 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
ac38335453 Tests: Wrap some component definitions in createComponent() calls
These are the ones that would have been tedious to automate.
jscodeshift will handle the remaining ones
2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
90b67b42f0 Tests: render/test-components tweaks 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
f96319e6f6 Tests: add dummy forEach blocks around sections with components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
a8e5189f0b Tests: factory => closure components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
d7f39a8254 Tests: group together tests with/without components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
eccea68212 Add test-utils/components.js and its tests 2017-02-19 02:14:15 +01:00
Gandalf-the-Bot
1a6554423d Bundled output for commit 732ddf06be [skip ci] 2017-02-18 15:06:33 +00:00
Leo Horie
732ddf06be Merge pull request #1595 from tivac/issues-1593
Loose comparison when early-outing from setting attributes
2017-02-18 10:05:42 -05:00
Leo Horie
d31e0a88f8 Merge pull request #1612 from bruce-one/xhr-abort
Avoid inaccurately inferring xhr abort.
2017-02-18 10:01:43 -05:00
Leo Horie
0412ed8218 Merge pull request #1640 from spacejack/class-factory-types
Add class and factory component type definitions.
2017-02-18 09:50:34 -05:00
Gandalf-the-Bot
68daa36e71 Bundled output for commit b9639dc485 [skip ci] 2017-02-18 14:47:21 +00:00
Leo Horie
b9639dc485 Merge pull request #1634 from pygy/fix-mount-class-factory
Let `m.mount` and `m.route` accept class and factory components.
2017-02-18 09:46:34 -05:00
spacejack
b3615aa607 Add class and factory component type definitions. Add JSDoc comments to types. 2017-02-18 08:44:01 -05:00
Pat Cavit
a578ffafdf docs: another minor formatting tweak 2017-02-17 13:30:33 -08:00
Pat Cavit
76a816be86 docs: fix heading levels to be consistent 2017-02-17 13:30:03 -08:00
Pat Cavit
e324cf6b91 feat: Make streams publishable to NPM (#1635) 2017-02-17 13:01:32 -08:00
Gandalf-the-Bot
419d08fe8b Bundled output for commit abceb2c9a8 [skip ci] 2017-02-17 17:35:43 +00:00