@@ -139,7 +139,7 @@ define([
139
139
if ( typeof ( options . csv ) !== 'undefined' ) {
140
140
this . csv = options . csv ;
141
141
}
142
- if ( options . xlsExcel !== undefined ) {
142
+ if ( options . xlsExcel !== ' undefined' ) {
143
143
this . xlsExcel = options . xlsExcel ;
144
144
}
145
145
/*
@@ -208,7 +208,7 @@ define([
208
208
209
209
// To UTF-8
210
210
var uint8 = new Uint8Array ( xlsContents . length ) ;
211
- for ( var i = 0 ; i < uint8 . length ; i ++ ) {
211
+ for ( var i = 0 ; i < uint8 . length ; i ++ ) {
212
212
uint8 [ i ] = xlsContents . charCodeAt ( i ) ;
213
213
}
214
214
@@ -222,17 +222,17 @@ define([
222
222
var columns = this . grid . get ( 'columns' ) ;
223
223
224
224
// 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
+ } ) ;
230
230
231
231
var formattedRows = [ ] ;
232
232
233
233
// Prepare rows' contents
234
234
array . forEach ( rows , function ( row ) {
235
- var formattedRow = [ ] ;
235
+ var formattedRow = [ ] ;
236
236
237
237
array . forEach ( columns , function ( column ) {
238
238
if ( column . exportable !== false && column . hidden !== true ) {
@@ -242,8 +242,8 @@ define([
242
242
if ( column . get ) {
243
243
val = column . get ( row ) ;
244
244
}
245
- if ( val === null || val === undefined ) {
246
- formattedRow . push ( '' ) ;
245
+ if ( val === null || val === ' undefined' ) {
246
+ formattedRow . push ( '' ) ;
247
247
return ;
248
248
}
249
249
0 commit comments