aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.draggable.js
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2009-01-27 19:17:28 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2009-01-27 19:17:28 +0000
commit84a0971aab8756f8886b15ee3c6e281c2e86d3aa (patch)
tree7e3abb7cc93d1b71a9eb0c2c043ab0a876734a57 /ui/ui.draggable.js
parente26951da7fe8a13d0e13b0d6bc91d171a3f5c3f9 (diff)
downloadjquery-ui-84a0971aab8756f8886b15ee3c6e281c2e86d3aa.tar.gz
jquery-ui-84a0971aab8756f8886b15ee3c6e281c2e86d3aa.zip
draggable: fixed snap
Diffstat (limited to 'ui/ui.draggable.js')
-rw-r--r--ui/ui.draggable.js4
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;