Skip to content

Commit

Permalink
fix patch doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasso committed Apr 27, 2017
1 parent 221c9f7 commit 1931c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const vnode2 = h('div', {

The `patch` takes two arguments, the first is a DOM element or a vnode representing the current view. The second is a vnode representing the new, updated view.

If a DOM element with a **parent and id** is passed, newVnode will be turned into a DOM node, and the passed element will be replaced by the created DOM node. If an old vnode is passed, asm-dom will efficiently modify it to match the description in the new vnode.
If a DOM element **with a parent** is passed, newVnode will be turned into a DOM node, and the passed element will be replaced by the created DOM node. If an old vnode is passed, asm-dom will efficiently modify it to match the description in the new vnode.

Any old vnode passed must be the resulting vnode from a previous call to patch.

Expand Down

0 comments on commit 1931c45

Please sign in to comment.