rename generatechema

This commit is contained in:
Eugenio Romano
2016-07-18 15:47:30 +01:00
parent 78ca82c7e8
commit bd69226bbb
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ export class ObjectDataTableAdapter implements DataTableAdapter {
private _rows: DataRow[]; private _rows: DataRow[];
private _columns: DataColumn[]; private _columns: DataColumn[];
static generationSchema(rowToExaminate: any) { static generatechema(rowToExaminate: any) {
let schema = []; let schema = [];
if (typeof rowToExaminate === 'object') { if (typeof rowToExaminate === 'object') {

View File

@@ -163,7 +163,7 @@ export class WebscriptComponent {
let datatableShow = true; let datatableShow = true;
try { try {
if (!data.schema) { if (!data.schema) {
data.schema = ObjectDataTableAdapter.generationSchema(data.data[0]); data.schema = ObjectDataTableAdapter.generatechema(data.data[0]);
} }
if (data.schema && data.schema.length > 0) { if (data.schema && data.schema.length > 0) {
this.data = new ObjectDataTableAdapter(data.data, data.schema); this.data = new ObjectDataTableAdapter(data.data, data.schema);