Commit Graph

188 Commits (ce14417216fd23bc9df1228b8a048178b44854c0)
 

Author SHA1 Message Date
paldepind ce14417216 Merge branch 'master' of https://github.com/kay999/snabbdom into replace-root
kay999 b55d8676ba remove-hook is now called after changing root-node
paldepind 716c7c82a7 Add SVG carousel example to readme
Simon Friis Vindum 72a5abad37 Merge pull request from jkleiser/master
Added carousel example with README
paldepind 74fb8eaae7 Version 0.3.3
paldepind 7e93ca2a67 Add xyz
Simon Friis Vindum 3036e503a7 Merge pull request from garth/input-value
Fix cursor jumping to the end of "controlled" inputs
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.
jkleiser 71cc36e532 Added a couple of lines to carousel README.md
jkleiser 7fb1af8dbc Added carousel example
Simon Friis Vindum 4881f725b9 Merge pull request from jimf/fix-patch
Fix element node detection in patch
Simon Friis Vindum 1c0ce08e45 Merge pull request from rayd/remove-single-text-nodes
Make sure we remove a single text node when patching it's parent element.
Ray Di Ciaccio ee00ffa21b When a vnode has 'text' property, remove the text node if vnode ispatched with children.
Ray Di Ciaccio 116950cd5b When a vnode has 'text' property, remove the text node if patched with no 'text'.
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
Simon Friis Vindum ab5d2d89e3 Release version 0.3.2
Simon Friis Vindum b578084efb Merge pull request from rayd/patch-inside-iframe
Should be able to patch nodes created inside an iframe.
Ray Di Ciaccio 675c723f77 Change how we check for an Element to just look at the nodeType.
Ray Di Ciaccio 0addf72bda Add failing test for iframes.
paldepind 07db236c38 Fix accidental bullet
paldepind 8d02790895 Add section to readme on how to structure applications
paldepind 3d2247474a Readme fixes
Simon Friis Vindum 7639799aa7 Merge pull request from jkleiser/jkleiser-patch-1
Update README.md
Jon Kleiser 6e474761bc Merge pull request from jkleiser/jkleiser-patch-1
Update README.md
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.
paldepind e68a750367 Document `init` hook
Simon Friis Vindum cd70d1936c Merge pull request from mkwtys/patch-1
Add devDpendencies
mkwtys 4cb0d572f3 Add dependencies
paldepind 9ac0d0fd85 Release version 0.3.1
Simon Friis Vindum 72aa2c62fb Merge pull request from garth/tidy
Ensure that class, props and style artefacts are not left after re-render
Sylvain Prat 2279d3cade More tests: nested thunks does not work yet
Sylvain Prat 29eb18108c Repaired broken root init
Sylvain Prat 752908e411 The tests pass!
Sylvain Prat 2341c26e26 Don't assume the root node won't be replaced
Sylvain Prat 7ca1d13783 Ignore test/browserified.js
Garth Williams 0425b2e5ed Ensure that class, props and style artefacts are not left after re-render
Sylvain Prat 85f7e9a93f Only one level deep for thunks
Sylvain Prat 3305f8f253 Fixed tests again
Sylvain Prat 645303e986 Improved/fixed some tests
Sylvain Prat 94a3f8767b Passing test "can be replaced and removed" for thunk
Sylvain Prat df41e1de25 Passing test "renders correctly when root"
Sylvain Prat d92dd1f0ce Removed forgotten console.log calls
Sylvain Prat 2f878813b1 Added a bunch of failing tests for thunks
paldepind 9309dd3c83 Release updated hero module
Simon Friis Vindum b0999ad634 Merge pull request from SkaterDad/hero-develop
Hero module updates
Mike Montoya 0ca8703e78 Update hero example for new module updates
Mike Montoya cd0eff09b8 Safety check for requestAnimationFrame
paldepind 4080c98d08 Formatting.
paldepind 4030e7d7eb Mention JSX babel plugin
Simon Friis Vindum cd8e5814ef Merge pull request from chenxsan/patch-2
Fixed 'Uncaught ReferenceError'