Merge pull request #2581 from spicyj/rm-elt-docs

Update variable name and doc type to be accurate
This commit is contained in:
Ben Alpert 2014-11-21 11:54:26 -08:00
commit 23effb7034
1 changed files with 3 additions and 3 deletions

View File

@ -267,16 +267,16 @@ var ReactMount = {
/**
* Take a component that's already mounted into the DOM and replace its props
* @param {ReactComponent} prevComponent component instance already in the DOM
* @param {ReactComponent} nextComponent component instance to render
* @param {ReactElement} nextElement component instance to render
* @param {DOMElement} container container to render into
* @param {?function} callback function triggered on completion
*/
_updateRootComponent: function(
prevComponent,
nextComponent,
nextElement,
container,
callback) {
var nextProps = nextComponent.props;
var nextProps = nextElement.props;
ReactMount.scrollMonitor(container, function() {
prevComponent.replaceProps(nextProps, callback);
});