diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-27 19:17:28 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2009-01-27 19:17:28 +0000 |
commit | 84a0971aab8756f8886b15ee3c6e281c2e86d3aa (patch) | |
tree | 7e3abb7cc93d1b71a9eb0c2c043ab0a876734a57 /ui/ui.draggable.js | |
parent | e26951da7fe8a13d0e13b0d6bc91d171a3f5c3f9 (diff) | |
download | jquery-ui-84a0971aab8756f8886b15ee3c6e281c2e86d3aa.tar.gz jquery-ui-84a0971aab8756f8886b15ee3c6e281c2e86d3aa.zip |
draggable: fixed snap
Diffstat (limited to 'ui/ui.draggable.js')
-rw-r--r-- | ui/ui.draggable.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index f24e7ab8a..b8bfaa0c7 100644 --- a/ui/ui.draggable.js +++ b/ui/ui.draggable.js @@ -662,8 +662,8 @@ $.ui.plugin.add("draggable", "snap", { }, drag: function(event, ui) { - var inst = $(this).data("draggable"), o = i.options; - var d = i.options.snapTolerance; + var inst = $(this).data("draggable"), o = inst.options; + var d = o.snapTolerance; var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width, y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height; |