title: Backbone events firing twice
body: <p>Why must I create a whole <a href="http://lostechies.com/derickbailey/2011/09/15/zombies-run-managing-page-transitions-in-backbone-apps/" rel="noreferrer">close prototype</a> just to have my events unbinded from my view? Shouldn't Backbone just build that in? Is there a way to detect when a view is being removed?</p>
  
  <p>My backbone events fire twice after I navigate away and back to the view.</p>
  
  <pre><code>        events : {
              "click #userDropdownButton &gt; a" : "toggleUserDropdownMenu",
              "click" : "hideUserDropdownMenuIfClickedOutside"
          },
  
          el : "body",
  
          initialize : function() {
              this.render();
          },
  
          // Shows/hides the user dropdown menu
          toggleUserDropdownMenu : function() {
              if(!this.$el.find('#userDropdownButton &gt; ul').is(':visible')) {
                  this.showUserDropdownMenu();
              } else {
                  this.hideUserDropdownMenu();
              }
              return false;
          },
          showUserDropdownMenu : function() {
              this.$el.find('#userDropdownButton').addClass('hover');
              this.$el.find('#userDropdownButton &gt; ul').show();
              this.$el.find('#userDropdownButton &gt; a .arrow-down').removeClass('arrow-down').addClass('arrow-up');
          },
          hideUserDropdownMenuIfClickedOutside : function() {
              if(this.$el.find('#userDropdownButton &gt; ul').is(':visible')) {
                  this.hideUserDropdownMenu();
              }
          },
          hideUserDropdownMenu : function() {
              this.$el.find('#userDropdownButton').removeClass('hover');
              this.$el.find('#userDropdownButton &gt; ul').hide();
              this.$el.find('#userDropdownButton &gt; a .arrow-up').removeClass('arrow-up').addClass('arrow-down');
          },
  </code></pre>
  
  <p>The first time the view is rendered, the dropdown opens and closes properly, but on the second time the view is rendered, the dropdown interprets every click twice, so as soon as it opens, the second click closes it.</p>