This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
S A N I T A R Y V I E W P U B L I C A T I O N P A T T E R N | |
This pattern adresses three issues; memory leaks, involuntarily allowing unwanted event listeners to live | |
on, and the cumbersome process of publishing a view to the page. The first two issues are dealt with through | |
making sure that previously published views are removed properly, and not merely have their html | |
overwritten. And, as will see, the solution to fixing the removal process will also mean a streamlining | |
of the publication process! | |
We do this through the use of two mixin modules; one for our views, and one for our router. |