Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jstejada committed Oct 29, 2016
1 parent f50798d commit 6e7c311
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# React Typist Changelog


### v1.0.3 (10/01/16)

- Fixes
+ Component no longer sets `isDone` state if unmounted


### v1.0.1 (10/01/16)

- Fixes
Expand Down
3 changes: 3 additions & 0 deletions dist/Typist.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ module.exports =
};

_this.onTypingDone = function () {
if (!_this.mounted) {
return;
}
_this.setState({ isDone: true });
_this.props.onTypingDone();
};
Expand Down
3 changes: 3 additions & 0 deletions dist/standalone/Typist.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ return /******/ (function(modules) { // webpackBootstrap
};

_this.onTypingDone = function () {
if (!_this.mounted) {
return;
}
_this.setState({ isDone: true });
_this.props.onTypingDone();
};
Expand Down
2 changes: 1 addition & 1 deletion dist/standalone/Typist.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-typist",
"version": "1.0.2",
"version": "1.0.3",
"description": "Typing animations with React",
"main": "dist/Typist.js",
"scripts": {
Expand Down

0 comments on commit 6e7c311

Please sign in to comment.