Skip to content

Commit

Permalink
fixed-#91
Browse files Browse the repository at this point in the history
  • Loading branch information
古映杰 committed Dec 22, 2016
1 parent 2560a14 commit a61c33b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/react-lite.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* react-lite.js v0.15.29
* react-lite.js v0.15.30
* (c) 2016 Jade Gu
* Released under the MIT License.
*/
Expand Down Expand Up @@ -782,7 +782,7 @@ Component.prototype = {
var state = this.state;
var context = this.context;

if ($updater.isPending || !$cache.isMounted) {
if (!$cache.isMounted) {
return;
}
var nextProps = $cache.props || props;
Expand Down
4 changes: 2 additions & 2 deletions dist/react-lite.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* react-lite.js v0.15.29
* react-lite.js v0.15.30
* (c) 2016 Jade Gu
* Released under the MIT License.
*/
Expand Down Expand Up @@ -786,7 +786,7 @@
var state = this.state;
var context = this.context;

if ($updater.isPending || !$cache.isMounted) {
if (!$cache.isMounted) {
return;
}
var nextProps = $cache.props || props;
Expand Down
4 changes: 2 additions & 2 deletions dist/react-lite.min.js

Large diffs are not rendered by default.

Binary file modified dist/react-lite.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-lite",
"version": "0.15.29",
"version": "0.15.30",
"description": "an implementation of React that optimizes for small script size",
"main": "dist/react-lite.common.js",
"jsnext:main": "src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Component.prototype = {
// },
forceUpdate(callback) {
let { $updater, $cache, props, state, context } = this
if ($updater.isPending || !$cache.isMounted) {
if (!$cache.isMounted) {
return
}
let nextProps = $cache.props || props
Expand Down

0 comments on commit a61c33b

Please sign in to comment.