Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

Commit

Permalink
Fulfills #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobius1 committed May 12, 2017
1 parent 50388c0 commit 39334de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions vanilla-dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@
var thead = false,
tbody = false;

data = data || this.options.data
data = data || this.options.data;

if (data.headings) {
thead = util.createElement('thead');
Expand Down Expand Up @@ -1163,7 +1163,7 @@
* @return {void}
*/
DataTable.prototype.export = function(type, filename, columnDelimiter, lineDelimiter, selection) {
var that = this, rows = [], data = [], ctr, keys, data = [];
var that = this, rows = [], data = [], ctr, keys;

if ( type === "csv" ) {
// Include headings
Expand Down Expand Up @@ -1195,8 +1195,8 @@
if ( type === "csv" ) {
var csv, link, j;

columnDelimiter = columnDelimiter || ",",
lineDelimiter = lineDelimiter || "\n"
columnDelimiter = columnDelimiter || ",";
lineDelimiter = lineDelimiter || "\n";

util.each(rows, function(i, row) {
j = 0;
Expand Down
Loading

0 comments on commit 39334de

Please sign in to comment.