Rather than registering and unregistering events, have the events always listen on window change and check whether there is an an accordion_size variable set. Make an option for whether accordion acitvely listens for window changes or not (accordion_listening or something)
Rather than registering and unregistering events, have the events always listen on window change and check whether there is an an accordion_size variable set. Make an option for whether accordion acitvely listens for window changes or not (accordion_listening or something)