Remove _pendingContext

There is no way to queue an update to a context so there is no need for
this field. The only way to get a new context is from above.

Soon _pendingElement will get the same treatment. Once _setPropsInternal
can be removed.
This commit is contained in:
Sebastian Markbage
2015-01-24 20:09:14 -08:00
parent 1c90efbf7c
commit adabfe2f49
+2 -4
View File
@@ -113,7 +113,6 @@ var ReactCompositeComponentMixin = {
this._instance = null;
this._pendingElement = null;
this._pendingContext = null;
this._pendingState = null;
this._pendingForceUpdate = false;
this._compositeLifeCycleState = null;
@@ -629,7 +628,6 @@ var ReactCompositeComponentMixin = {
var prevContext = this._context;
this._pendingElement = null;
this._pendingContext = null;
this.updateComponent(
transaction,
@@ -648,12 +646,12 @@ var ReactCompositeComponentMixin = {
* @internal
*/
performUpdateIfNecessary: function(transaction) {
if (this._pendingElement != null || this._pendingContext != null) {
if (this._pendingElement != null) {
ReactReconciler.receiveComponent(
this,
this._pendingElement || this._currentElement,
transaction,
this._pendingContext || this._context
this._context
);
}