Commit Graph

12 Commits (54b6b4507c90326b79a141a1ec71f485973261ad)

Author SHA1 Message Date
KWorks 529b46c8ce test: use transitionend instead of settimeout
Fixes #447
6 years ago
Jan van Brügge 953a326757 Force page reflow before applying styles 7 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
Caridy 687db9f99b [perf-optimization] skip unnecessary work in modules that can support memoization of the data structure consumed by them 8 years ago
José Luis Lafuente ccbf30f0c6
Add support for css variables 8 years ago
Andre Staltz 091dc5f961
Migrate from CommonJS modules to ES2015 modules 8 years ago
paldepind ce14417216 Merge branch 'master' of https://github.com/kay999/snabbdom into replace-root 9 years ago
Sylvain Prat 2341c26e26 Don't assume the root node won't be replaced 9 years ago
Garth Williams 0425b2e5ed Ensure that class, props and style artefacts are not left after re-render 9 years ago
paldepind 39926a9cfb New syntax for delayed style 10 years ago
paldepind 7edc91325d Remove `emptyVnodeAt` – patch instead accepts DOM node 10 years ago
paldepind 64e76e7466 Allow several listeners to control element removal 10 years ago