Create custom listenable with addListener and removeListener methods.
github.com/FilipChalupa/custom-listenable
FilipChalupa/custom-listenable