mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-30 16:47:58 -05:00
Update Draggable test case for jquery.simulate
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
<script type="text/javascript" src="../../qunit/testrunner.js"></script>
|
||||
<script type="text/javascript" src="draggable.js"></script>
|
||||
<script type="text/javascript" src="jquery.useraction.js"></script>
|
||||
<script type="text/javascript" src="jquery.simulate.js"></script>
|
||||
|
||||
<style>
|
||||
#main {
|
||||
|
||||
@@ -3,7 +3,7 @@ var drag = function(el, dx, dy, complete) {
|
||||
// speed = sync -> Drag syncrhonously.
|
||||
// speed = fast|slow -> Drag asyncrhonously - animated.
|
||||
|
||||
return $(el).userAction("drag", {
|
||||
return $(el).simulate("drag", {
|
||||
dx: dx||0, dy: dy||0, speed: 'sync', complete: complete
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user