Bug? Draggable and unbind.
Hi,
I've noticed that if you make an object draggable and then unbind it, you can't make it draggable any more. See sample code below.
- <ul id="foo">
- <li id="bar">bar</li>
- <li id="baz">baz</li>
- </ul>
- <script type="text/javascript">
- $(document).ready(function() {
- $("#bar").draggable(); // Can drag
- $("#bar").unbind();
- $("#bar").draggable(); // Can't drag any more
- });
- </script>
Is that a bug?
Cheers,
Julien