From 84a0971aab8756f8886b15ee3c6e281c2e86d3aa Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Tue, 27 Jan 2009 19:17:28 +0000 Subject: [PATCH] draggable: fixed snap --- ui/ui.draggable.js | 4 ++-- 1 file 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;