title: fullpage.js multiple onLeave and afterLoad events
body: <p>I'm trying to implement afterLoad and onLeave multiple events in my <code>fullpage.js</code> for different sections. But only the last one seems to be working, what can be wrong here? </p>
  
  <p>If I remove the last one though, the first one works well. So it looks like I combine them in a wrong way, so one disables the other.</p>
  
  <pre><code>$('#fullpage').fullpage({
        onLeave: function(index, nextIndex, direction) {
            if (nextIndex == 3 || nextIndex == 1) {
                $('.aboutme').hide("slide", {
                    direction: "left"
                }, 200);
            }
  
  
        },
        afterLoad: function(anchorLink, index) {
            if (index == 2) {
                $('.aboutme').show("slide", {
                    direction: "left"
                }, 200);
            }
  
        },
  
        onLeave: function(index, nextIndex, direction) {
  
            if (nextIndex == 2) {
                $('.titlea').hide("slide", {
                    direction: "right"
                }, 200, function() {
                    $('.titleb').hide("slide", {
                        direction: "right"
                    }, 200);
                });
            }
  
        },
        afterLoad: function(anchorLink, index) {
  
            if (index == 1) {
                $('.titlea').show("slide", {
                    direction: "right"
                }, 200, function() {
                    $('.titleb').show("slide", {
                        direction: "right"
                    }, 200);
                });
            }
        }
    });
  </code></pre>
  
  <p>To be more specific, what is the right way to combine multiple <code>onLeave</code> and <code>afterLoad</code> methods? </p>