Skip to content

Commit c152c1c

Browse files
authored
Update slick.grid.js
1 parent e06348e commit c152c1c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

slick.grid.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ if (typeof Slick === "undefined") {
208208
var cssShow = { position: 'absolute', visibility: 'hidden', display: 'block' };
209209
var $hiddenParents;
210210
var oldProps = [];
211-
var columnResizeDragging = false;
211+
var columnResizeDragging = false;
212212

213213
//////////////////////////////////////////////////////////////////////////////////////////////
214214
// Initialization
@@ -772,7 +772,7 @@ if (typeof Slick === "undefined") {
772772

773773
function setupColumnSort() {
774774
$headers.click(function (e) {
775-
if (columnResizeDragging) return;
775+
if (columnResizeDragging) return;
776776
// temporary workaround for a bug in jQuery 1.7.1 (http://bugs.jquery.com/ticket/11328)
777777
e.metaKey = e.metaKey || e.ctrlKey;
778778

@@ -980,7 +980,7 @@ if (typeof Slick === "undefined") {
980980
minPageX = pageX - Math.min(shrinkLeewayOnLeft, stretchLeewayOnRight);
981981
})
982982
.on("drag", function (e, dd) {
983-
columnResizeDragging = true;
983+
columnResizeDragging = true;
984984
var actualMinWidth, d = Math.min(maxPageX, Math.max(minPageX, e.pageX)) - pageX, x;
985985
if (d < 0) { // shrink column
986986
x = d;
@@ -1064,7 +1064,7 @@ if (typeof Slick === "undefined") {
10641064
updateCanvasWidth(true);
10651065
render();
10661066
trigger(self.onColumnsResized, {grid: self});
1067-
setTimeout(function () { columnResizeDragging = false; }, 300);
1067+
setTimeout(function () { columnResizeDragging = false; }, 300);
10681068
});
10691069
});
10701070
}
@@ -2751,7 +2751,7 @@ if (typeof Slick === "undefined") {
27512751
}
27522752

27532753
function handleHeaderClick(e) {
2754-
if (columnResizeDragging) return;
2754+
if (columnResizeDragging) return;
27552755
var $header = $(e.target).closest(".slick-header-column", ".slick-header-columns");
27562756
var column = $header && $header.data("column");
27572757
if (column) {

0 commit comments

Comments
 (0)