Browse files

Ensure that dragUpdate always has 'this' set

1 parent b216860 commit 699b29aab290d30f692d6580861b521afb1ece8e @cjheath committed May 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 raphaelle.js
View
2 raphaelle.js
@@ -178,7 +178,7 @@ Raphael.el.draggable = function(options) {
var dragging_over = over(event);
// console.log("Move "+drag_obj.id+" over "+dragging_over.id+" to X="+event.clientX+", Y="+event.clientY);
var update = drag_obj.dragUpdate ? drag_obj.dragUpdate : function(o, dx, dy, e) { drag_obj.translate(dx, dy); };
- update(dragging_over, delta_x, delta_y, event);
+ update.call(drag_obj, dragging_over, delta_x, delta_y, event);
paper.safari();
last_x = event.clientX;
last_y = event.clientY;

0 comments on commit 699b29a

Please sign in to comment.