Commit Graph

622 Commits (8eb4ae84197af04725396e57e7376205a32738f1)
 

Author SHA1 Message Date
NoBey 006133228a fix README 7 years ago
Simon Friis Vindum 730f6f89af
Merge pull request #369 from tobli/simplifySetAttribute
Refactor to remove function casting.
7 years ago
Tobias Lidskog d7a38d71b7 Refactor to remove function casting.
Casting the setAttribute and setAttributeNS functions at each call site make the code harder to read. Instead extract the new overloads for Element into a global declare statement.

This does not change the generated javascript code,  just makes the typescript easier to read.
7 years ago
Simon Friis Vindum 093367e645
Merge pull request #364 from gfmio/fix-issue-361
Fix for issue 361
7 years ago
Frederique Mittelstaedt 584f2c5334 Fix for issue 361 7 years ago
K 3438b74801 Added toVNode domApi test 7 years ago
K fb04f628f3 Fixed missing domApi argument in recursive toVNode() call 7 years ago
Simon Friis Vindum 410d2b3a27 Version 0.7.1 7 years ago
Simon Friis Vindum 2ab6f3dedf
Merge pull request #355 from jcbrand/master
Also create a dist build for the dataset module
7 years ago
JC Brand 3ed3a2a1a8 Also create a dist build for the dataset module 7 years ago
Caridy Patiño dbb4d2dae5
Merge pull request #351 from caridy/caridy/issue-348
fixes issue #348: perf optimization during diffing algo to avoid calling addVNodes and removeVNodes when there is nothing to do
7 years ago
Simon Friis Vindum d0590bc04c
Merge pull request #337 from StreetStrider/improve-vnode-typings
Improve VNode typings
7 years ago
Caridy b7f90368ee fixes issue #348: perf optimization during diffing algo to avoid calling addVNodes and removeVNodes when there is nothing to do. 7 years ago
Simon Friis Vindum 2271b7bdf1 Merge pull request #287 from caesarsol/fix-svg-classname-docs
Update and improve docs section "Using Classes in SVG Elements"
7 years ago
Simon Friis Vindum 24b867d155 Merge pull request #326 from AlexGalays/master
Add package.json/module
7 years ago
Strider 17a6d312bb h: allow VNodesSparse to accept single VNode, because underlying mechanism actually allows it. 7 years ago
Strider 806a5e7b30 h: reduce duplication, by bringing VNodes and VNodesSparse types. 7 years ago
Simon Friis Vindum 56577183e2 Merge pull request #336 from graforlock/master
Added a missing snabbdom/tovnode piece of documentation
7 years ago
Maciej Sitko c8b8d58490 Update README.md 7 years ago
Maciej Sitko b8fcaf99a9 Update README.md 7 years ago
Yarom Shoval 8b92071c69 Tiny type check in call to `vnode` at `h.ts` 8 years ago
Simon Friis Vindum 4ea189eb8a Merge pull request #331 from answershuto/master
README: Fix capitalization for 'JavaScript'
8 years ago
answershuto edf349dc59 README: Fix capitalization for 'JavaScript' 8 years ago
Alexandre Galays fc47e2c9b1 Add package.json/module 8 years ago
paldepind e203f711c6 Version 0.7.0 8 years ago
paldepind c0a6e97ed1 Update dependencies 8 years ago
Simon Friis Vindum 0273fcf05b Merge pull request #320 from staltz/docfrag
Support DocumentFragment in toVNode()
8 years ago
Simon Friis Vindum d580e249cd Merge pull request #321 from ChangJoo-Park/master
Wrong example name "Reorder Animation" to "SVG"
8 years ago
ChangJoo Park 0ffc7a62b8 Wrong example name "Reorder Animation" to "SVG" 8 years ago
Andre Staltz d00ae793a6
Support DocumentFragment in toVNode 8 years ago
Simon Friis Vindum 8e189fa2f5 Merge pull request #318 from danigomez/master
Add badges
8 years ago
Daniel Gómez 0e0c7ab008 Add badges 8 years ago
Simon Friis Vindum 25d8625c73 Merge pull request #310 from JanKoehnlein/patch-1
Added sprotty to the client section
8 years ago
Simon Friis Vindum ecd2b1a38d Merge pull request #314 from caridy/caridy/boolean-attributes
fixes issue #306 and others: boolean attributes alignment with HTML
8 years ago
Simon Friis Vindum 0c3b47995d Merge pull request #313 from feliciousx-open-source/dataset-safari-fix
fix(dataset): check if property exist before deleting
8 years ago
Churchill Lee 16b14888b7
refactor(dataset): protect delete invocation only 8 years ago
Caridy 702a0af1e8 fixes issue #306 and others: boolean attributes alignment with HTML 8 years ago
Churchill Lee 06c9cfbb47
fix(dataset): check if property exist before deleting
in Safari, when it is `use strict`, if the dataset property is removed in DOM
deleting it again will cause an error

closes #309
8 years ago
Jan Köhnlein 038203dbd4 Update README.md 8 years ago
Simon Friis Vindum 7b45afea49 Merge pull request #289 from astroK8/master
PR for issue #262 (remove draggable of boolean attributes)
8 years ago
Yarom Shoval a5b93a7137 VNode key property can be undefined
Because actually it can be undefined:
4adbd971cb/src/vnode.ts (L44)
8 years ago
Andre Staltz f70581a428
Version 0.6.9 8 years ago
Andre Staltz 0601d7d94a
Fix style module logic when delayed field is optional 8 years ago
Jan van Brügge 836968509e style module: make delayed and remove property optional
PR #296
8 years ago
Andre Staltz f3a3c7b368
Version 0.6.8 8 years ago
Andre Staltz 4b4a34ad0f Fix toVNode() for comment nodes, lacking some fields
Comment nodes when converted to VNode were lacking vnode.data and
vnode.elm, which in turn would break use cases with modules such as the
style module (Which assumed vnode.data to be defined). Since toVNode is
used as an initial step (e.g. for server-side rendered content), there
is no reason to not provide vnode.elm since that vnode may be used as
the "prevVNode" during patch. Also, because comment vnodes have the '!'
sel, most logic in snabbdom that detects a truthy sel will also assume a
truthy data field. It is easier to build the comment vnode with those
fields than to modify all the logic elsewhere in snabbdom.
8 years ago
Simon Friis Vindum 72431c820e Merge pull request #292 from mightyiam/issue-291
fix #291
8 years ago
Shahar Or (mightyiam) f3354732bf fix #291 8 years ago
Simon Friis Vindum 8f75eb9aef Merge pull request #271 from mightyiam/type
type VNode props (fixes #264)
8 years ago
cesare soldini 1826bcd3c6 Bugfix: thunk function called two times
PR #273

* Separate test blocks with newlines
* Add a 🔴 failing test that highlights the bug, and some other more detailed tests on thunk renderings
* Fix the bug 
* Correctly gitignore files in base directory
The existing configuration was ignoring the same filenames in subdirectories, for example `test/thunk.js`
* Remove newlines between test blocks
* Make tests titles more explicative
8 years ago