Update fbsource

Reviewed By: zertosh

Differential Revision: D4111832

fbshipit-source-id: 301969a1c828fb87e7e09c1eea3cd44799b89509
This commit is contained in:
Jeff Morrison
2016-11-08 12:33:16 -08:00
committed by Facebook Github Bot
parent 90a696597c
commit bd3be5bd24
8 changed files with 41 additions and 16 deletions

View File

@@ -31,8 +31,11 @@ type AttributeDiffer = (prevProp: mixed, nextProp: mixed) => boolean;
type AttributePreprocessor = (nextProp: mixed) => mixed;
type CustomAttributeConfiguration =
// $FlowFixMe(>=0.34.0)
{ diff: AttributeDiffer, process: AttributePreprocessor } |
// $FlowFixMe(>=0.34.0)
{ diff: AttributeDiffer } |
// $FlowFixMe(>=0.34.0)
{ process: AttributePreprocessor };
type AttributeConfiguration =

View File

@@ -73,6 +73,7 @@ function ChildReconciler(shouldClone) {
return clone;
}
const child = createFiberFromElement(element, priority);
// $FlowFixMe(>=0.34.0)
previousSibling.sibling = child;
child.return = returnFiber;
return child;

View File

@@ -245,6 +245,7 @@ exports.createFiberFromElement = function(element : ReactElement<*>, priorityLev
return fiber;
};
// $FlowFixMe(>=0.34.0)
function createFiberFromElementType(type : mixed, key : null | string) {
let fiber;
if (typeof type === 'function') {