cayasso/primus-multiplex — pull request #9 by jgrund (2013-12-31 16:40:58+00:00)
Title: Clean up events in spark.initialise when spark is ended.

First off thanks for the great plugin, it's been really nice to work with.

When looking for memory leaks in my single page app I noticed that spark instances were building up.
It appears that events registered in ```spark.initialise``` are not removed when ```spark.end``` is called.

This patch removes those events when ```end``` fires, freeing the spark references.