public/js/pipe.js
function wireOneUpHandlers(){
    // Bind ESC key
    $document.bind('keyup', function(e){
      if (e.keyCode === 27) {
        return closeOneUp()
      }
    }) // end keyup
    
    // The "x" button on the one up, close it.
    $closeOneUp.bind('click', closeOneUp )

    // The overlay
    $overlay.bind('click', closeOneUp )
    
  }
function wireOneUpHandlers(){
    // Bind ESC key
    $document.bind('keyup', function(e){
      if (e.keyCode === 27) {
        return closeOneUp()
      }
    }) // end keyup
    
    // The "x" button on the one up, close it.
    $closeOneUp.bind('click', closeOneUp )

    // The overlay
    $overlay.bind('click', closeOneUp )
    
  }
function wireOneUpHandlers ( ) { // Bind ESC key $document . bind ( 'keyup' , function ( e ) { if ( e . keyCode === 27 ) { return closeOneUp ( ) } } ) // end keyup // The "x" button on the one up, close it. $closeOneUp . bind ( 'click' , closeOneUp ) // The overlay $overlay . bind ( 'click' , closeOneUp ) }
Bind events to the document & close button to close the one up view
Bind events to the document & close button to close the one up view