rniemeyer / knockout-postbox

A small library that uses Knockout's native pub/sub capabilities to facilitate decoupled communication between separate view models or components.
MIT License
350 stars 55 forks source link

Update knockout-postbox.js #41

Open eriksimonic opened 8 years ago

eriksimonic commented 8 years ago

I am doing a large knockout application and I had to implement this function, to dispose topics by topic name, it is very useful for handling dispose event and cleaning after yourself.

If it possible can you add it to the repo so I don't need to maintain a copy of the library/ Regards Erik.

Added new function to dispose all topics by topic name.

rniemeyer commented 8 years ago

Thanks for this PR. It will need some tests and README updates as well. I'll try to get to them, if you don't get to them first.