Skip to content

Commit

Permalink
remove Message clear function setTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jawil committed May 31, 2019
1 parent 0f13546 commit cf478ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "uxcore-message",
"version": "0.5.14",
"version": "0.5.15",
"description": "uxcore-message component for uxcore.",
"repository": "https://github.com/uxcore/uxcore-message.git",
"author": "eternaslky",
Expand Down
4 changes: 1 addition & 3 deletions src/Message.jsx
Expand Up @@ -143,9 +143,7 @@ const methods = {};
export default {
...methods,
clear() {
setTimeout(() => {
createMessageInstance();
}, 0);
createMessageInstance();
},
config(options) {
if (options) {
Expand Down

0 comments on commit cf478ef

Please sign in to comment.