jQuery UI可调整大小的自定义句柄错误

问题描述:

我正在尝试使用可调整大小的jQuery ui的自定义句柄,但是当我使用handles选项将jQuery引用传递给另一个元素时,它失败. Iv从文档和网络上的其他示例中读取的内容应该可以正常工作.

Im trying to get a custom handle work with jquery ui resizable widget, but when I use the handles option to pass in a jquery reference to another element, it fails. From what Iv read from the documentation and other examples on the web, this should work just fine.

<div class="layer">
<div class="left">left</div>
<div class="center">center</div>
<div class="right">right</div>
</div>
​
$('.layer').resizable({
    handles: {
        'e': $('.right')
    }
});
​

这是一个小提琴: http://jsfiddle.net/MatteS75/3dwVp/

这是一个最近已修复的错误:

This is a bug that has been fixed very recently:

http://bugs.jqueryui.com/ticket/8713

https://github.com/jquery/jquery-ui/commit/9b908878ae3a9c0fbbd9958b579f223a648 /a>

https://github.com/jquery/jquery-ui/commit/9b908878ae3a9c0fbbd9958b579f223a648c5c69