Barney Carroll
a3983c9655
Remove redundant child normalisation
2022-02-12 12:19:35 +01:00
Barney Carroll
9999fbe2a4
Text is always represented as text vnodes, never as vnode.text
2022-02-12 12:19:35 +01:00
Isiah Meadows
34f4363357
Add m.censor, adjust m.route.Link to use it ( #2538 )
...
Also, restructure a few things for better code reuse.
2019-09-30 18:44:39 -04:00
Isiah Meadows
6c562d2b9b
Fix keys, normalize holes ( #2452 )
...
* Fix #2434
* Treat holes as unkeyed, normalize boolean/null/undefined
This brings a lot better consistency with that API, even though it's
slightly breaking. (I had to update a bunch of tests to correspond with
it.)
* Fill in PR number [skip ci]
2019-07-03 17:05:44 -04:00
Vasil Rimar
39c20bdb34
Handle [ fragment selector. Fixes #2349 ( #2352 )
...
* Handle `[` fragment selector. Fix #2349
* Update tests
* Simplify hyperscript function
2019-01-07 04:56:09 -05:00
Isiah Meadows
966e78bcab
Allow variadic arguments to m.fragment ( #2328 )
...
* Implement support for variadic arguments to `m.fragment`
While I was at it, I refactored the common logic out of `hyperscript`.
* Add a missed change from #2326
* Update docs + changelog [skip ci]
* Explain rationale for `hyperscriptVnode`'s calling convention
This way, it doesn't get erroneously "cleaned up" into something worse,
and so it's clearer how it'd be potentially optimized once ES5 support
is dropped.
2018-12-05 23:57:42 -05:00
Rasmus Porsager
421474c0e2
Cast className using toString ( #2309 )
...
* Cast className using toString
* Add to change-log
2018-11-24 08:13:56 -05:00
Pierre-Yves Gérardy
32b319d140
[render/hyperscript] Normalize to class attrs to className, ignore only nullish values
2018-06-07 18:09:38 +02:00
Pierre-Yves Gérardy
92b22fe8e6
[render/hyperscript] have the attrs take precedence over the selector, improve class normalization
...
fix #1773
fix #2172
2018-06-07 18:09:38 +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
magikstm
6097cfb2e9
Small optimization in render hyperscript.js ( #2064 )
...
* Small optimization in render hyperscript.js
* Remove temporary variable
* Small optimization in render hyperscript.js
Squashed commits:
[5b103291] Small optimization in render hyperscript.js
* Remove sloppy mode comment
2018-05-18 20:48:56 +02:00
Ilya Sarantsev
106fd75145
Performance optimization for #1941 per @isiahmeadows suggestion
2017-08-26 22:42:29 +03:00
Ilya Sarantsev
9e6b175519
Handle shared attributes object in hyperscript ( #1941 )
2017-08-23 16:36:14 +03:00
Scotty Simpson
73d9265c6d
fix: selector [value=""] is mishandled ( #1843 )
2017-05-02 14:28:59 -07:00
Pierre-Yves Gerardy
98e3cbdc69
Revert attrs.class creation logic to what we had in v1.0.1. fix #1764
2017-04-04 12:23:51 +02:00
Isiah Meadows
295b764f52
Merge pull request #1753 from StephanHoyer/master
...
Fix rendering `0` as only child without attrs - fixes #1752
2017-03-29 18:24:19 -04:00
Isiah Meadows
b34c3eaf82
Optimize memory for selector cache
2017-03-02 06:34:01 -05:00
Pierre-Yves Gérardy
3f3af74dde
Support classes and factories as components ( #1339 )
...
* Support classes and factories as components
* Tests for class and factory component support
2017-02-14 22:48:02 -05:00
maks feltrin
f59402718b
check that selector.view is a function
2017-01-23 11:54:35 +01:00
Barney Carroll
d82d337569
Replace x instanceof Array with Array.isArray(x)
2016-11-24 09:21:27 +00:00
Barney Carroll
6cb9a5cc80
Handle [class] selector properly
2016-11-19 17:44:36 +00:00
Leo Horie
b8ef290acd
improved bundler, handle width/height atts
2016-09-23 10:31:33 -04:00
Leo Horie
ec07d76fcd
m.fragment docs
...
public api tests
2016-08-24 00:26:15 -04:00
Pierre-Yves Gerardy
71c20b84b8
Merge two if blocks, chomp an indentation level
2016-08-13 10:47:54 +02:00
Leo Horie
9c16ece556
don't cast to boolean
2016-08-12 23:55:45 -04:00
suren shrestha
b2189a524f
proper selector check ( #1231 )
2016-08-10 13:56:58 -07:00
Leo Horie
7c736b511a
rename node to vnode
2016-07-29 22:04:04 -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
ca784a684e
fix svg across component boundaries
2016-06-03 12:27:24 -04:00
Leo Horie
b2b0ab34dd
parse pattern attribute correctly
2016-06-01 15:43:42 -04:00
Pat Cavit
e466ccebd0
Remove unused var ( #1053 )
...
Uglify caught this when I was testing to see what the updated min+gzip size was.
2016-05-19 12:41:25 -07:00
Leo Horie
5ec06e7c08
init state, fix examples
2016-05-15 11:14:38 -04:00
Leo Horie
ead2e8ac0b
shouldUpdate, component oninit order fix
2016-05-05 23:20:31 -04:00
Leo Horie
3282ef3f77
components, angular dbmon
2016-05-03 23:39:01 -04:00
Leo Horie
559369016d
initial commit (work in progress)
2016-04-20 20:02:37 -04:00