Skip to content

Commit 7e76fc8

Browse files
committed
Cleaned some debugging code
1 parent 845d569 commit 7e76fc8

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

jquery.nouislider.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -531,30 +531,29 @@
531531
,style = base.data('style')
532532
,eventXY = event[style === 'left' ? 'x' : 'y']
533533
,baseSize = style === 'left' ? base.width() : base.height()
534+
534535
// Create a standard set off offsets compensated with the
535536
// scroll distance. When required, correct for scrolling.
537+
// This is a bug, as far as I can see, in IE(10?).
536538
,correction = {
537539
x: ( event.t[2] ? window.pageXOffset : 0 )
538-
,y: ( event.t[2] ? window.pageYOffset : 0 )
539540
}
540541
,offset = {
541542
handles: []
542543
,base: {
543544
left: base.offset().left - correction.x
544-
,top: base.offset().top// - correction.y
545+
,top: base.offset().top
545546
}
546547
};
547548

548549
// Loop handles and add data to the offset list.
549550
for (i = 0; i < handles.length; i++ ) {
550551
offset.handles.push({
551552
left: handles[i].offset().left - correction.x
552-
,top: handles[i].offset().top// - correction.y
553+
,top: handles[i].offset().top
553554
});
554555
}
555556

556-
console.log('Correction: ' + correction.y + ' Handle offset: ' + offset.handles[0].top, ' Event: ' + eventXY + ' Base offset: ' + offset.base.top);
557-
558557
// Calculate the central point between the handles;
559558
var handleCenter = handles.length === 1 ? 0 :
560559
(( offset.handles[0][style] + offset.handles[1][style] ) / 2 );

jquery.nouislider.min.js

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)