Skip to content

Commit 49c8506

Browse files
committed
update to v0.15.13
1 parent 827cc09 commit 49c8506

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
*/
@@ -1863,7 +1863,7 @@ function render(vnode, container, callback) {
18631863
}
18641864

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

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
*/
@@ -1867,7 +1867,7 @@
18671867
}
18681868

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

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

-8 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)