Hacker News new | ask | show | jobs
by tretiy3 4711 days ago
You want to use inversion of control in your Utility class. Just pass function, which will operate on Modal class instance (not Modal class instance itself but function) as argument to its utilities that show Modals.