Skip to content

Commit

Permalink
Fix constraint-function
Browse files Browse the repository at this point in the history
  • Loading branch information
ccvca committed May 17, 2015
1 parent 2c42276 commit 67be772
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion svg.draggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
if (typeof coord === "object") {
if (typeof coord.x !== "boolean" || coord.x) {
element.x(typeof coord.x === "number" ? coord.x : x);
} else if (typeof coord.y !== "boolean" || coord.y) {
}
if (typeof coord.y !== "boolean" || coord.y) {
element.y(typeof coord.y === "number" ? coord.y : y);
}
} else if (typeof coord === "boolean" && coord) {
Expand Down

0 comments on commit 67be772

Please sign in to comment.