i have make an button object inside which event listener , enable, disable activity is being done and when i m making an object of button inside the another object i.e., ui.js then it is showing
a.dispatchEvent is not a function(). Help me to get out of it