handsontable-helpers
Advanced tools
Comparing version 1.0.27 to 1.0.28
@@ -357,3 +357,4 @@ /** | ||
HH.setHeadersFirstRow = function(columns, hot) { | ||
HH.setHeadersFirstRow = function(hot) { | ||
var | ||
@@ -364,5 +365,3 @@ colHeaders = [], | ||
data = hotData.splice(1), | ||
newColumns = [], | ||
deleteCols = [], | ||
colWidths = []; | ||
deleteCols = []; | ||
@@ -373,4 +372,2 @@ for (var i in firstRow) { | ||
colHeaders.push(name); | ||
newColumns.push(columns[i]); | ||
} else deleteCols.push(i); | ||
@@ -387,21 +384,6 @@ } | ||
hot.updateSettings({ | ||
'colWidths': undefined | ||
}); | ||
hot.updateSettings({ | ||
'columns': newColumns, | ||
'colWidths': undefined, | ||
'colHeaders': colHeaders, | ||
'data': data, | ||
}); | ||
columns = newColumns; | ||
for (var cw = 0; cw < colHeaders.length; cw++) { | ||
var width = hot.getColWidth(cw); | ||
colWidths.push(width + 30); | ||
} | ||
hot.updateSettings({ | ||
'colWidths': colWidths | ||
}); | ||
}; | ||
@@ -408,0 +390,0 @@ |
{ | ||
"name": "handsontable-helpers", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "handsontable.helpers.js", |
13326
312