toggles.js
function(e) {
          el.off('mousemove');
          elSlide.off('mouseleave');
          elBlob.off('mouseup');

          if (!diff && opts['click'] && e.type !== 'mouseleave') {
            doToggle();
            return;
          }

          var overBound = active ? diff < -slideLimit : diff > slideLimit;
          if (overBound) {
            // dragged far enough, toggle
            doToggle();
          } else {
            // reset to previous state
            elInner.stop().animate({
              marginLeft: active ? 0 : -width + height
            }, opts['animate'] / 2, opts['easing']);
          }
        }
function(e) {
          el.off('mousemove');
          elSlide.off('mouseleave');
          elBlob.off('mouseup');

          if (!diff && opts['click'] && e.type !== 'mouseleave') {
            doToggle();
            return;
          }

          var overBound = active ? diff < -slideLimit : diff > slideLimit;
          if (overBound) {
            // dragged far enough, toggle
            doToggle();
          } else {
            // reset to previous state
            elInner.stop().animate({
              marginLeft: active ? 0 : -width + height
            }, opts['animate'] / 2, opts['easing']);
          }
        }
function ( e ) { el . off ( 'mousemove' ) ; elSlide . off ( 'mouseleave' ) ; elBlob . off ( 'mouseup' ) ; if ( ! diff && opts [ 'click' ] && e . type !== 'mouseleave' ) { doToggle ( ) ; return ; } var overBound = active ? diff < - slideLimit : diff > slideLimit ; if ( overBound ) { // dragged far enough, toggle doToggle ( ) ; } else { // reset to previous state elInner . stop ( ) . animate ( { marginLeft : active ? 0 : - width + height } , opts [ 'animate' ] / 2 , opts [ 'easing' ] ) ; } }
fired on mouseup and mouseleave events
fired on mouseup and mouseleave events