Browse files

close connection on window unload

  • Loading branch information...
1 parent ebba9e9 commit 60f2f8d940fb482a8abf1646dd97cddd0f93d154 @tuxcanfly tuxcanfly committed Dec 23, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 demo/templates/demo/status_list.html
View
4 demo/templates/demo/status_list.html
@@ -49,6 +49,10 @@
document.title = document.title.replace(/ *\[[^)]*\] */g, "");
});
+ $(window).unload(function() {
+ pubsub.disconnect();
+ });
+
</script>
<script id="template" type="text/x-jquery-tmpl">

0 comments on commit 60f2f8d

Please sign in to comment.