Commit Graph

947 Commits (581543e8e2277ab3720fa58ad49765b7427a8d94)
 

Author SHA1 Message Date
André Staltz 394168f730 Fix safety check for requestAnimationFrame
Doing `window &&` does not achieve the expected behavior, it instead crashes with an error `ReferenceError: window is not defined`. This fix is simple and necessary for server-side rendering.
9 years ago
paldepind 946e34cf75 Version 0.4.0 9 years ago
paldepind fb80c1fd80 Keep DOM APIs of different `init` calls seperate 9 years ago
paldepind dc9b6467d3 Merge branch 'ptol-dom-api' 9 years ago
ptol 5cf759c42c dom api implementation 9 years ago
paldepind c49e5a1341 Version 0.3.4 9 years ago
Simon Friis Vindum 093f78ff82 Merge pull request #77 from kay999/patch-1
small cleanups
9 years ago
kay999 30dec98b34 small cleanups
This works fine for my use-cases. Also did some small-cleanups.
9 years ago
paldepind a26db8fc5f Only invoke remove hook on root with parent element 9 years ago
paldepind ce14417216 Merge branch 'master' of https://github.com/kay999/snabbdom into replace-root 9 years ago
kay999 b55d8676ba remove-hook is now called after changing root-node 9 years ago
paldepind 716c7c82a7 Add SVG carousel example to readme 9 years ago
Simon Friis Vindum 72a5abad37 Merge pull request #70 from jkleiser/master
Added carousel example with README
9 years ago
paldepind 74fb8eaae7 Version 0.3.3 9 years ago
paldepind 7e93ca2a67 Add xyz 9 years ago
Simon Friis Vindum 3036e503a7 Merge pull request #71 from garth/input-value
Fix cursor jumping to the end of "controlled" inputs
9 years ago
Garth Williams daba67692e Fix cursor jumping to the end of "controlled" inputs
DOM `INPUT.value` should never be updated when it matches the new vnode.

This fixes issues where typing into an INPUT with a sync event handler
cause a render (such as for validation feedback) where setting
`INPUT.value` also pushes the cursor to the end of the input.
9 years ago
jkleiser 71cc36e532 Added a couple of lines to carousel README.md 9 years ago
jkleiser 7fb1af8dbc Added carousel example 9 years ago
Simon Friis Vindum 4881f725b9 Merge pull request #67 from jimf/fix-patch
Fix element node detection in patch
9 years ago
Simon Friis Vindum 1c0ce08e45 Merge pull request #68 from rayd/remove-single-text-nodes
Make sure we remove a single text node when patching it's parent element.
9 years ago
Ray Di Ciaccio ee00ffa21b When a vnode has 'text' property, remove the text node if vnode ispatched with children. 9 years ago
Ray Di Ciaccio 116950cd5b When a vnode has 'text' property, remove the text node if patched with no 'text'. 9 years ago
Jim Fitzpatrick 4b83fe8a95 Fix node detection in patch
`Element.ELEMENT_NODE` is non-standard and undefined in phantomjs.
Updating to use `Node.ELEMENT_NODE`.

References:
- MDN Element: https://developer.mozilla.org/en-US/docs/Web/API/Element
- MDN Node.nodeType: https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
9 years ago
Simon Friis Vindum ab5d2d89e3 Release version 0.3.2 9 years ago
Simon Friis Vindum b578084efb Merge pull request #66 from rayd/patch-inside-iframe
Should be able to patch nodes created inside an iframe.
9 years ago
Ray Di Ciaccio 675c723f77 Change how we check for an Element to just look at the nodeType. 9 years ago
Ray Di Ciaccio 0addf72bda Add failing test for iframes. 9 years ago
paldepind 07db236c38 Fix accidental bullet 9 years ago
paldepind 8d02790895 Add section to readme on how to structure applications 9 years ago
paldepind 3d2247474a Readme fixes 9 years ago
Simon Friis Vindum 7639799aa7 Merge pull request #62 from jkleiser/jkleiser-patch-1
Update README.md
9 years ago
Jon Kleiser 6e474761bc Merge pull request #1 from jkleiser/jkleiser-patch-1
Update README.md
9 years ago
Jon Kleiser dd66f2e7c7 Update README.md
Several minor corrections. Added a few commas to make reading easier. Please review carefully, as my understanding of the matter is still not the best.
9 years ago
paldepind e68a750367 Document `init` hook 9 years ago
Simon Friis Vindum cd70d1936c Merge pull request #60 from mkwtys/patch-1
Add devDpendencies
9 years ago
mkwtys 4cb0d572f3 Add dependencies 9 years ago
paldepind 9ac0d0fd85 Release version 0.3.1 9 years ago
Simon Friis Vindum 72aa2c62fb Merge pull request #57 from garth/tidy
Ensure that class, props and style artefacts are not left after re-render
9 years ago
Sylvain Prat 2279d3cade More tests: nested thunks does not work yet 9 years ago
Sylvain Prat 29eb18108c Repaired broken root init 9 years ago
Sylvain Prat 752908e411 The tests pass! 9 years ago
Sylvain Prat 2341c26e26 Don't assume the root node won't be replaced 9 years ago
Sylvain Prat 7ca1d13783 Ignore test/browserified.js 9 years ago
Garth Williams 0425b2e5ed Ensure that class, props and style artefacts are not left after re-render 9 years ago
Sylvain Prat 85f7e9a93f Only one level deep for thunks 9 years ago
Sylvain Prat 3305f8f253 Fixed tests again 9 years ago
Sylvain Prat 645303e986 Improved/fixed some tests 9 years ago
Sylvain Prat 94a3f8767b Passing test "can be replaced and removed" for thunk 9 years ago
Sylvain Prat df41e1de25 Passing test "renders correctly when root" 9 years ago