From 0e556fef24e9db468d00b05ef8ddfa0b06b08f0c Mon Sep 17 00:00:00 2001 From: Mitermayer Reis Date: Fri, 25 Aug 2017 09:15:47 -0700 Subject: [PATCH] Adding the correct argument name to documentation tag (#10529) --- src/isomorphic/modern/class/ReactNoopUpdateQueue.js | 4 ++-- .../dom/shared/eventPlugins/BeforeInputEventPlugin.js | 2 +- src/renderers/dom/stack/client/ReactMount.js | 2 +- src/renderers/dom/stack/server/ReactServerUpdateQueue.js | 2 +- src/renderers/shared/stack/reconciler/ReactReconciler.js | 4 ++-- src/renderers/shared/stack/reconciler/ReactUpdateQueue.js | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/isomorphic/modern/class/ReactNoopUpdateQueue.js b/src/isomorphic/modern/class/ReactNoopUpdateQueue.js index e382264450..263015f3c1 100644 --- a/src/isomorphic/modern/class/ReactNoopUpdateQueue.js +++ b/src/isomorphic/modern/class/ReactNoopUpdateQueue.js @@ -58,7 +58,7 @@ var ReactNoopUpdateQueue = { * * @param {ReactClass} publicInstance The instance that should rerender. * @param {?function} callback Called after component is updated. - * @param {?string} Name of the calling function in the public API. + * @param {?string} callerName name of the calling function in the public API. * @internal */ enqueueForceUpdate: function(publicInstance, callback, callerName) { @@ -75,7 +75,7 @@ var ReactNoopUpdateQueue = { * @param {ReactClass} publicInstance The instance that should rerender. * @param {object} completeState Next state. * @param {?function} callback Called after component is updated. - * @param {?string} Name of the calling function in the public API. + * @param {?string} callerName name of the calling function in the public API. * @internal */ enqueueReplaceState: function( diff --git a/src/renderers/dom/shared/eventPlugins/BeforeInputEventPlugin.js b/src/renderers/dom/shared/eventPlugins/BeforeInputEventPlugin.js index 0957510942..da87fd5816 100644 --- a/src/renderers/dom/shared/eventPlugins/BeforeInputEventPlugin.js +++ b/src/renderers/dom/shared/eventPlugins/BeforeInputEventPlugin.js @@ -273,7 +273,7 @@ function extractCompositionEvent( } /** - * @param {string} topLevelType Record from `BrowserEventConstants`. + * @param {TopLevelTypes} topLevelType Record from `BrowserEventConstants`. * @param {object} nativeEvent Native browser event. * @return {?string} The string corresponding to this `beforeInput` event. */ diff --git a/src/renderers/dom/stack/client/ReactMount.js b/src/renderers/dom/stack/client/ReactMount.js index 649efdd281..ff59de9cf4 100644 --- a/src/renderers/dom/stack/client/ReactMount.js +++ b/src/renderers/dom/stack/client/ReactMount.js @@ -85,7 +85,7 @@ function internalGetID(node) { /** * Mounts this component and inserts it into the DOM. * - * @param {ReactComponent} componentInstance The instance to mount. + * @param {ReactComponent} wrapperInstance The instance to mount. * @param {DOMElement} container DOM element to mount into. * @param {ReactReconcileTransaction} transaction * @param {boolean} shouldReuseMarkup If true, do not insert markup diff --git a/src/renderers/dom/stack/server/ReactServerUpdateQueue.js b/src/renderers/dom/stack/server/ReactServerUpdateQueue.js index 35b064f543..fa6c99e3e0 100644 --- a/src/renderers/dom/stack/server/ReactServerUpdateQueue.js +++ b/src/renderers/dom/stack/server/ReactServerUpdateQueue.js @@ -74,7 +74,7 @@ class ReactServerUpdateQueue { * * @param {ReactClass} publicInstance The instance that should rerender. * @param {?function} callback Called after component is updated. - * @param {?string} Name of the calling function in the public API. + * @param {?string} callerName Name of the calling function in the public API. * @internal */ enqueueForceUpdate( diff --git a/src/renderers/shared/stack/reconciler/ReactReconciler.js b/src/renderers/shared/stack/reconciler/ReactReconciler.js index 4250b70141..f454472324 100644 --- a/src/renderers/shared/stack/reconciler/ReactReconciler.js +++ b/src/renderers/shared/stack/reconciler/ReactReconciler.js @@ -32,8 +32,8 @@ var ReactReconciler = { * * @param {ReactComponent} internalInstance * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction - * @param {?object} the containing host component instance - * @param {?object} info about the host container + * @param {?object} hostParent the containing host component instance + * @param {?object} hostContainerInfo info about the host container * @return {?string} Rendered markup to be inserted into the DOM. * @final * @internal diff --git a/src/renderers/shared/stack/reconciler/ReactUpdateQueue.js b/src/renderers/shared/stack/reconciler/ReactUpdateQueue.js index 778936380e..9523087250 100644 --- a/src/renderers/shared/stack/reconciler/ReactUpdateQueue.js +++ b/src/renderers/shared/stack/reconciler/ReactUpdateQueue.js @@ -123,7 +123,7 @@ var ReactUpdateQueue = { * * @param {ReactClass} publicInstance The instance that should rerender. * @param {?function} callback Called after component is updated. - * @param {?string} Name of the calling function in the public API. + * @param {?string} callerName Name of the calling function in the public API. * @internal */ enqueueForceUpdate: function(publicInstance, callback, callerName) {