Skip to content

Commit

Permalink
New release
Browse files Browse the repository at this point in the history
  • Loading branch information
asafdav committed Dec 16, 2014
1 parent f7f9d23 commit 20045c8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-csv",
"version": "0.3.0",
"version": "0.3.1",
"main": "build/ng-csv.min.js",
"dependencies": {
"angular": "~1",
Expand Down
6 changes: 3 additions & 3 deletions build/ng-csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ angular.module('ngCsv.services').
service('CSV', ['$q', function ($q) {

var EOL = '\r\n';
var BOM = "%ef%bb%bf";
var BOM = "\ufeff";

/**
* Stringify one field
Expand Down Expand Up @@ -87,12 +87,12 @@ angular.module('ngCsv.services').
csvContent += headerString + EOL;
}

var arrData;
var arrData = [];

if (angular.isArray(responseData)) {
arrData = responseData;
}
else {
else if (angular.isFunction(responseData)) {
arrData = responseData();
}

Expand Down
4 changes: 2 additions & 2 deletions build/ng-csv.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-csv",
"version": "0.3.0",
"version": "0.3.1",
"main": "build/ng-csv.min.js",
"description": "Simple directive that turns arrays and objects into downloadable CSV files",
"repository": {
Expand Down

0 comments on commit 20045c8

Please sign in to comment.