title: set draggable in mousedown handler
body: <p>Perhaps it's by design, but I want the handle to be <code>draggable</code> rightaway, not after the first mouseup as it currently happens.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  
      &lt;link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/minified/jquery-ui.min.css" rel="stylesheet" /&gt;
  
      &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          $(function () {
  
  
              var handle = $("#handle");
  
              handle.on("mousedown", function () {
  
                  // doesn't work
                  handle.draggable();
              });
  
  
              // works
              handle.draggable();
          });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div style="width: 400px; height: 400px; border: 2px solid gray; position: relative;"&gt;
  
          &lt;div id="handle" style="width: 50px; height: 50px; position: absolute; top: 100px; left: 100px; background-color: gray;"&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>