Skip to content

Commit 05f7fc6

Browse files
author
agracio
committed
minor refactoring
1 parent d635314 commit 05f7fc6

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Diff for: src/grid.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from "react";
22
import {GridHeader} from "./gridHeader";
33
import {GridBody} from "./gridBody";
44
import {GridFooter} from "./gridFooter";
5-
import {polyfills} from "./plyfills";
5+
import {polyfills} from "./polyfills";
66

77
export interface Column extends ColumnSetting{
88
groupIndex?: Readonly<number>

Diff for: src/plyfills.ts renamed to src/polyfills.ts

File renamed without changes.

Diff for: src/utils.ts

+10
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,14 @@ export class Utils{
3838
return obj[key];
3939
}
4040
}
41+
42+
public static stringRandom(chars: number): string{
43+
let text = "";
44+
let possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
45+
46+
for( let i = 0; i < chars; i++ )
47+
text += possible.charAt(Math.floor(Math.random() * possible.length));
48+
49+
return text;
50+
}
4151
}

0 commit comments

Comments
 (0)