Multiple package events (on_page_output) doesn't work

Permalink
I've written an add-on for the marketplace that will rewrite your theme on the fly to use a cdn. I've utilized the on_page_output event to capture the page output before it's dumped to the page. Everything was magical and worked.

I am currently in the process of writing another add-on utilizing the same event and i've realized that multiple events, specifically on_page_output, although they get fired they don't actually change the params for the next event. Meaning that each on_page_output event passed the page content from the loaded .php template. so if you modify the page content in one of the the second one won't know about it because it's passing the original $content and not the updated one.

Is this a bug or something that i need try to code around? Ideally in my case the first event that fires and updates the page content should then update the content param so that the next on_page_output event will have updated page content, thus allowing you to chain add-ons that utilize the same event.

thronic