Skip to content

Commit

Permalink
hide/remove statics return bool
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Aug 23, 2021
1 parent 5ededed commit b0e794c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packaged-ui/modal",
"version": "1.6.2",
"version": "1.6.3",
"repository": "[email protected]:packaged-ui/modal.git",
"author": "Tom Kay <[email protected]>",
"license": "MIT",
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export class Modal
if(search)
{
search.hide();
return true;
}
return false;
}

static remove(element)
Expand All @@ -61,7 +63,9 @@ export class Modal
if(search)
{
search.remove();
return true;
}
return false;
}

constructor(element, rootElement = document)
Expand Down

0 comments on commit b0e794c

Please sign in to comment.