Skip to content

Commit

Permalink
Interaction: rename redoMove to doMove
Browse files Browse the repository at this point in the history
Re: #151
  • Loading branch information
taye committed Nov 11, 2015
1 parent 4f4b9e8 commit c5c658a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class Interaction {
animationFrame.cancel(this.inertiaStatus.i);
this.inertiaStatus.active = false;

this.redoMove();
this.doMove();
break;
}
element = utils.parentElement(element);
Expand Down Expand Up @@ -325,7 +325,7 @@ class Interaction {
}

/*\
* Interaction.redoMove
* Interaction.doMove
[ method ]
*
* Force a move of the current action at the same coordinates. Useful if
Expand All @@ -340,11 +340,11 @@ class Interaction {
| // change the snap settings
| event.interactable.draggable({ snap: { targets: [] }});
| // fire another move event with re-calculated snap
| event.interaction.redoMove();
| event.interaction.doMove();
| }
| });
\*/
redoMove (preEnd) {
doMove (preEnd) {
const signalArg = {
dx: 0,
dy: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/modifiers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Interaction.signals.on('action-end', function ({ interaction }) {
// if the endOnly option is true for any modifier
if (modifiers[modifiers.names[i]].shouldDo(interaction.target, interaction.prepared.name, true, true)) {
// fire a move event at the modified coordinates
interaction.redoMove(true /* preEnd */);
interaction.doMove(true /* preEnd */);
break;
}
}
Expand Down

0 comments on commit c5c658a

Please sign in to comment.