title: jQuery UI -- Draggable options in bind function
body: <p>How can I use the jQuery UI draggable options in a "bind" function? Using the standard <code>draggable()</code> function doesn't work with what I want to do.</p>
  
  <p>Thanks!</p>
  
  <pre><code>$('a#dragthis')
      .bind('dragstart', function(e) {
          isDragging = true;
      })
      .bind('drag', function(e) {
          var x = e.pageX;
          var y = e.pageY;
          console.log(x + "|" + y);
          motivationIsWorking(x, y);
      })
      .bind('dragend', function(e) {
          isDragging = false;
          motivationStopped();
          unmotivateUser();
      });
  </code></pre>