Simon Friis Vindum
|
4881f725b9
|
Merge pull request #67 from jimf/fix-patch
Fix element node detection in patch
|
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 |
Ray Di Ciaccio
|
675c723f77
|
Change how we check for an Element to just look at the nodeType.
|
9 years ago |
Oscar Finnsson
|
6da3ab68e1
|
Make it possible to run a patch inside another patch
|
9 years ago |
paldepind
|
73f0c05a82
|
patchVnode should not return a value
|
10 years ago |
paldepind
|
d0a2f5176e
|
Invoke event listener with several arguments in array #13
|
10 years ago |
paldepind
|
a6a814c9eb
|
Snabbdom will always remove an element from its proper parent, even if the element has been changed
|
10 years ago |
paldepind
|
f72e48dc05
|
Do not invoke module `remove` hook for text nodes
|
10 years ago |
paldepind
|
459c46e22b
|
Add `isDef` function
|
10 years ago |
paldepind
|
35de88b833
|
Replace element if it has a parent
|
10 years ago |
paldepind
|
26a62cab4d
|
Add postpatch hook
|
10 years ago |
paldepind
|
7344b0aca5
|
Do not invoke `destroy` hook for text nodes
|
10 years ago |
paldepind
|
24206f430a
|
Add attachTo module
|
10 years ago |
paldepind
|
f1ee781962
|
Elements can be created with namespace #4
|
10 years ago |
paldepind
|
23344df6b8
|
Pass empty VNode to `create` hook set on element
|
10 years ago |
paldepind
|
35335d6d64
|
Old vnode is passed to update hook
|
10 years ago |
paldepind
|
b4b90ac609
|
Fix bug regarding changed text nodes
|
10 years ago |
paldepind
|
cd7eb76a09
|
Insert created elements at correct location
|
10 years ago |
paldepind
|
95de47368b
|
Fix bug
|
10 years ago |
paldepind
|
052d51de00
|
Dont use `forEach`
|
10 years ago |
paldepind
|
7edc91325d
|
Remove `emptyVnodeAt` – patch instead accepts DOM node
|
10 years ago |
paldepind
|
56d1b03fb3
|
Refactor hook initialization
|
10 years ago |
paldepind
|
5ae0836f21
|
Render `vnode` property if defined
|
10 years ago |
paldepind
|
b66893f05f
|
Add `init` hook
|
10 years ago |
paldepind
|
1eb19f827e
|
Add `patch`-hook, `update`-hook and short circuiting
|
10 years ago |
paldepind
|
f5d2b0f861
|
Add destroy hook directly on vnodes
|
10 years ago |
paldepind
|
0d6ebaf2dc
|
Add destroy hook
|
10 years ago |
paldepind
|
caea7088e5
|
Add `pre` and `post` global hooks
|
10 years ago |
paldepind
|
64e76e7466
|
Allow several listeners to control element removal
|
10 years ago |
paldepind
|
d819a713f0
|
Move lifecycle hook to `hook` obj in `data`
|
10 years ago |
paldepind
|
4c173570e3
|
Init returns patch function
|
10 years ago |
paldepind
|
c066feb080
|
Huge modularizing refactor
|
10 years ago |
paldepind
|
1f5041df62
|
Tiny refactor
|
10 years ago |
paldepind
|
f3c71f921d
|
Make sure next frame actually happens in next frame
|
10 years ago |
paldepind
|
c4931bf1af
|
Add create event/hook
|
10 years ago |
paldepind
|
157a159283
|
Fix selector classes overriding property classes
|
10 years ago |
paldepind
|
0010ed3967
|
Add support for delayed style setting
|
10 years ago |
paldepind
|
c5477e9d57
|
Call insert listener only after everything has been patched
|
10 years ago |
paldepind
|
c2b6e7c325
|
Revamp event listeners
|
10 years ago |
paldepind
|
1c509cd653
|
Fix bug with properties being updated on text nodes
|
10 years ago |
paldepind
|
92c41b9b9c
|
Add insert and remove hooks/events
|
10 years ago |
paldepind
|
7ee4fe2446
|
Tiny refactoring
|
10 years ago |
paldepind
|
1de8e0b9a8
|
Add and remove event listeners based on selectors
|
10 years ago |
paldepind
|
b662c6bd7e
|
Merge branch 'patch-1' of https://github.com/aMarCruz/snabbdom into aMarCruz-patch-1
|
10 years ago |
Alberto Martínez
|
63ffd53f5c
|
Good work.
|
10 years ago |
paldepind
|
46bbffe9e6
|
Tiny refactoring
|
10 years ago |
paldepind
|
91a001e501
|
Refactoring
|
10 years ago |
paldepind
|
c6bea140d0
|
Improve performance for text-only elements
|
10 years ago |