Skip to content

Commit ab8b03e

Browse files
committed
Lintify
1 parent bc83d44 commit ab8b03e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/dragelement/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ dragElement.init = function init(options) {
8484
// so that others can look at and modify them
8585
gd._dragged = false;
8686
gd._dragging = true;
87-
var offset = pointerOffset(e)
87+
var offset = pointerOffset(e);
8888
startX = offset[0];
8989
startY = offset[1];
9090
initialTarget = e.target;
@@ -113,7 +113,7 @@ dragElement.init = function init(options) {
113113

114114
// document acts as a dragcover for mobile, bc we can't create dragcover dynamically
115115
else {
116-
dragCover = document
116+
dragCover = document;
117117
document.addEventListener('touchmove', onMove);
118118
document.addEventListener('touchend', onDone);
119119

@@ -126,8 +126,8 @@ dragElement.init = function init(options) {
126126
}
127127

128128
function onMove(e) {
129-
var offset = pointerOffset(e)
130-
var dx = offset[0] - startX,
129+
var offset = pointerOffset(e),
130+
dx = offset[0] - startX,
131131
dy = offset[1] - startY,
132132
minDrag = options.minDrag || constants.MINDRAG;
133133

@@ -184,7 +184,7 @@ dragElement.init = function init(options) {
184184
e2 = new MouseEvent('click', e);
185185
}
186186
catch(err) {
187-
var offset = pointerOffset(e)
187+
var offset = pointerOffset(e);
188188
e2 = document.createEvent('MouseEvents');
189189
e2.initMouseEvent('click',
190190
e.bubbles, e.cancelable,
@@ -235,5 +235,5 @@ function pointerOffset(e) {
235235
return mouseOffset(
236236
e.changedTouches && e.changedTouches[0] || e,
237237
document.body
238-
)
238+
);
239239
}

0 commit comments

Comments
 (0)