Skip to content

Commit 4db3bbe

Browse files
author
César Augusto Ribeiro
committed
Apply lint
1 parent 95e8322 commit 4db3bbe

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

widgets/Export.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ define([
139139
if (typeof(options.csv) !== 'undefined') {
140140
this.csv = options.csv;
141141
}
142-
if (options.xlsExcel !== undefined) {
142+
if (options.xlsExcel !== 'undefined') {
143143
this.xlsExcel = options.xlsExcel;
144144
}
145145
/*
@@ -208,7 +208,7 @@ define([
208208

209209
// To UTF-8
210210
var uint8 = new Uint8Array(xlsContents.length);
211-
for (var i = 0; i < uint8.length; i++){
211+
for (var i = 0; i < uint8.length; i++) {
212212
uint8[i] = xlsContents.charCodeAt(i);
213213
}
214214

@@ -222,17 +222,17 @@ define([
222222
var columns = this.grid.get('columns');
223223

224224
// Prepare formatted columns
225-
var formattedColumns = columns.map(function(column) {
226-
if (column.exportable !== false && column.hidden !== true) {
227-
return column.label || column.field;
228-
}
229-
});
225+
var formattedColumns = columns.map(function (column) {
226+
if (column.exportable !== false && column.hidden !== true) {
227+
return column.label || column.field;
228+
}
229+
});
230230

231231
var formattedRows = [];
232232

233233
// Prepare rows' contents
234234
array.forEach(rows, function (row) {
235-
var formattedRow = [];
235+
var formattedRow = [];
236236

237237
array.forEach(columns, function (column) {
238238
if (column.exportable !== false && column.hidden !== true) {
@@ -242,8 +242,8 @@ define([
242242
if (column.get) {
243243
val = column.get(row);
244244
}
245-
if (val === null || val === undefined) {
246-
formattedRow.push('');
245+
if (val === null || val === 'undefined') {
246+
formattedRow.push('');
247247
return;
248248
}
249249

0 commit comments

Comments
 (0)