Skip to content

Commit b778674

Browse files
committed
merge dev branch
2 parents 3ebdcb9 + 49c8506 commit b778674

6 files changed

Lines changed: 8 additions & 10 deletions

File tree

dist/react-lite.common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* react-lite.js v0.15.12
2+
* react-lite.js v0.15.13
33
* (c) 2016 Jade Gu
44
* Released under the MIT License.
55
*/
@@ -1864,7 +1864,7 @@ function render(vnode, container, callback) {
18641864
}
18651865

18661866
function unstable_renderSubtreeIntoContainer(parentComponent, subVnode, container, callback) {
1867-
var context = parentComponent.vnode ? parentComponent.vnode.context : parentComponent.$cache.parentContext;
1867+
var context = parentComponent.$cache.parentContext;
18681868
return renderTreeIntoContainer(subVnode, container, callback, context);
18691869
}
18701870

dist/react-lite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* react-lite.js v0.15.12
2+
* react-lite.js v0.15.13
33
* (c) 2016 Jade Gu
44
* Released under the MIT License.
55
*/
@@ -1868,7 +1868,7 @@
18681868
}
18691869

18701870
function unstable_renderSubtreeIntoContainer(parentComponent, subVnode, container, callback) {
1871-
var context = parentComponent.vnode ? parentComponent.vnode.context : parentComponent.$cache.parentContext;
1871+
var context = parentComponent.$cache.parentContext;
18721872
return renderTreeIntoContainer(subVnode, container, callback, context);
18731873
}
18741874

dist/react-lite.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-lite.min.js.gz

-7 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-lite",
3-
"version": "0.15.12",
3+
"version": "0.15.13",
44
"description": "an implementation of React that optimizes for small script size",
55
"main": "dist/react-lite.common.js",
66
"jsnext:main": "src/index.js",

src/ReactDOM.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ export function render(vnode, container, callback) {
7373
}
7474

7575
export function unstable_renderSubtreeIntoContainer(parentComponent, subVnode, container, callback) {
76-
let context = parentComponent.vnode
77-
? parentComponent.vnode.context
78-
: parentComponent.$cache.parentContext
76+
let context = parentComponent.$cache.parentContext
7977
return renderTreeIntoContainer(subVnode, container, callback, context)
8078
}
8179

0 commit comments

Comments
 (0)