From e8c58aedeb8de31a61890c9d34eb0414e42997f7 Mon Sep 17 00:00:00 2001 From: Brad Dunbar Date: Sun, 11 Dec 2016 11:25:59 -0500 Subject: [PATCH 1/2] Update setAccessor argument documentation. (#443) --- src/dom/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dom/index.js b/src/dom/index.js index a22ad2bb1c..428f975f9e 100644 --- a/src/dom/index.js +++ b/src/dom/index.js @@ -16,8 +16,9 @@ export function removeNode(node) { * If `value` is `null`, the attribute/handler will be removed. * @param {Element} node An element to mutate * @param {string} name The name/key to set, such as an event or attribute name - * @param {any} value An attribute value, such as a function to be used as an event handler - * @param {any} previousValue The last value that was set for this name/node pair + * @param {any} old The last value that was set for this name/node pair + * @param {any} value An attribute value, such as a function to be used as an event handler + * @param {Boolean} isSvg Are we currently diffing inside an svg? * @private */ export function setAccessor(node, name, old, value, isSvg) { From 0eb767ccbd7ca0e7696acfad74a31a71cf9e5981 Mon Sep 17 00:00:00 2001 From: Brad Dunbar Date: Sun, 11 Dec 2016 11:35:49 -0500 Subject: [PATCH 2/2] moutAll -> mountAll (#442) --- src/vdom/diff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vdom/diff.js b/src/vdom/diff.js index 8c337d1955..53b82a0a54 100644 --- a/src/vdom/diff.js +++ b/src/vdom/diff.js @@ -179,7 +179,7 @@ function idiff(dom, vnode, context, mountAll) { * @param {Element} dom Element whose children should be compared & mutated * @param {Array} vchildren Array of VNodes to compare to `dom.childNodes` * @param {Object} context Implicitly descendant context object (from most recent `getChildContext()`) - * @param {Boolean} moutAll + * @param {Boolean} mountAll */ function innerDiffNode(dom, vchildren, context, mountAll) { let originalChildren = dom.childNodes,