Skip to content

Commit

Permalink
After merge PR tweak. place globals at the toip of the file anduse pr…
Browse files Browse the repository at this point in the history
…eferred casing
  • Loading branch information
vnbaaij committed Jul 18, 2024
1 parent c61a8e3 commit b9bcf9d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Core/Components/DataGrid/FluentDataGrid.razor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
let initialColumnsWidths = '';
var initialColumnsWidths = '';
var latestGridElement = null;

export function init(gridElement) {
if (gridElement === undefined || gridElement === null) {
return;
Expand Down Expand Up @@ -89,11 +91,11 @@ export function checkColumnOptionsPosition(gridElement) {
}
}

let LatestGridElement = null;

export function enableColumnResizing(gridElement) {
if (gridElement === LatestGridElement)
if (gridElement === latestGridElement)
return;
LatestGridElement = gridElement;
latestGridElement = gridElement;
const columns = [];
let min = 50;
let headerBeingResized;
Expand Down

0 comments on commit b9bcf9d

Please sign in to comment.