Skip to content

Commit 4222b13

Browse files
committed
fix linting failures
1 parent 3670091 commit 4222b13

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

ui/widgets/slider.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -309,45 +309,45 @@ return $.widget( "ui.slider", $.ui.mouse, {
309309
var that = this;
310310

311311
that.element
312-
.on( 'touchstart.slider', function( event ) {
313-
if ( ! event.cancelable ) {
312+
.on( "touchstart.slider", function( event ) {
313+
if ( !event.cancelable ) {
314314
return;
315315
}
316316

317-
var touch = event.originalEvent.touches[0];
318-
that._mouseCapture({
317+
var touch = event.originalEvent.touches[ 0 ];
318+
that._mouseCapture( {
319319
pageX: touch.pageX,
320320
pageY: touch.pageY,
321321
target: touch.target
322-
});
322+
} );
323323

324324
event.preventDefault();
325-
})
326-
.on( 'touchmove.slider', function( event ) {
327-
if ( ! that._mouseSliding || ! event.cancelable ) {
325+
} )
326+
.on( "touchmove.slider", function( event ) {
327+
if ( !that._mouseSliding || !event.cancelable ) {
328328
return;
329329
}
330330

331-
var touch = event.originalEvent.touches[0];
331+
var touch = event.originalEvent.touches[ 0 ];
332332

333-
that._mouseDrag({
333+
that._mouseDrag( {
334334
pageX: touch.pageX,
335335
pageY: touch.pageY,
336336
target: touch.target
337-
});
337+
} );
338338

339339
// Prevent page scrolling
340340
event.preventDefault();
341341
event.stopPropagation();
342-
})
343-
.on( 'touchend.slider', function( event ) {
344-
if ( ! that._mouseSliding || ! event.cancelable ) {
342+
} )
343+
.on( "touchend.slider", function( event ) {
344+
if ( !that._mouseSliding || !event.cancelable ) {
345345
return;
346346
}
347347

348348
that._mouseStop( event );
349349
event.preventDefault();
350-
});
350+
} );
351351
},
352352

353353
_uiHash: function( index, value, values ) {

0 commit comments

Comments
 (0)