Possible to re-init plugin function?

Hello elgg community.

I have experience programming, though i'm fairly new to elgg and jquery. I am ajaxifying an elgg site using history.js and ajaxify.js with jQuery 1.6.4. I am working with an elgg event manager plugin that uses jquery to handle click events.

Some of the plugin features don't work when the page is loaded dynamically, but work fine when the page is reloaded (ie refresh page in browser).

Using the console.log() function to debug, I can confirm that the elgg.event_manager.init function is only running on the first page load, thus not re-initilized when the events page is loaded.

Is there any way to re-run that init function when the page elements are dynamically loaded?

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking