Skip to content

Commit

Permalink
fix: throw error if transitionend is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
denisaleman committed Jan 2, 2022
1 parent e655f02 commit c516c11
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion TODOs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
### TODOs
| Filename | line # | TODO
|:------|:------:|:------
| [toggleTransition.js](toggleTransition.js#L220) | 220 | throw 'TransitionEnd event is not supported in this browser';
| [test/test.js](test/test.js#L227) | 227 | Add check whether element has `style="display: none"` or `style="visibility: hidden"` with accordance to the `manageVisibilityWith` setting.
4 changes: 1 addition & 3 deletions toggleTransition.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,7 @@
}
}

/**
* @todo throw 'TransitionEnd event is not supported in this browser';
*/
throw 'TransitionEnd event is not supported in this browser.';
}
};

Expand Down
2 changes: 1 addition & 1 deletion toggleTransition.min.js

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

Loading

0 comments on commit c516c11

Please sign in to comment.