Skip to content

Commit

Permalink
release v2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
roland-reed committed Feb 2, 2018
1 parent 9d12b3a commit 1bc96a9
Show file tree
Hide file tree
Showing 49 changed files with 14,190 additions and 14,131 deletions.
194 changes: 105 additions & 89 deletions dist/React.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/React.min.js

Large diffs are not rendered by default.

31 changes: 19 additions & 12 deletions dist/ReactDOMServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,16 @@ var Refs = {
}
};

var mapVtype = {
0: 6,
4: 1,
2: 2,
1: 5
};
function Vnode(type, vtype, props, key, ref) {
this.type = type;
this.vtype = vtype;
this.tag = mapVtype[vtype];
if (vtype) {
this.props = props;
this._owner = Refs.currentOwner;
Expand Down Expand Up @@ -231,7 +238,7 @@ function fiberizeChildren(c, updater) {
flattenObject = {};
flattenPrev = null;
flattenArray = [];
var vnode = updater.vnode;
var vnode = updater._reactInternalFiber;
if (c !== void 666) {
lastText = null;
flattenIndex = 0;
Expand Down Expand Up @@ -435,13 +442,13 @@ function encodeEntities(text) {

var rnumber = /^-?\d+(\.\d+)?$/;
/**
* 为元素样子设置样式
*
* @export
* @param {any} dom
* @param {any} lastStyle
* @param {any} nextStyle
*/
* 为元素样子设置样式
*
* @export
* @param {any} dom
* @param {any} lastStyle
* @param {any} nextStyle
*/


var cssNumber = oneObject("animationIterationCount,columnCount,order,flex,flexGrow,flexShrink,fillOpacity,fontWeight,lineHeight,opacity,orphans,widows,zIndex,zoom");
Expand All @@ -450,9 +457,9 @@ var cssMap = oneObject("float", "cssFloat");

/**
* 转换成当前浏览器可用的样式名
*
* @param {any} name
* @returns
*
* @param {any} name
* @returns
*/

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
Expand Down Expand Up @@ -613,7 +620,7 @@ function renderVNode(vnode, context) {
str += innerHTML$$1;
} else {
var fakeUpdater = {
vnode: vnode
_reactInternalFiber: vnode
};
var children = fiberizeChildren(props.children, fakeUpdater);
for (var i in children) {
Expand Down
2 changes: 1 addition & 1 deletion dist/ReactDOMServer.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 1bc96a9

Please sign in to comment.