Skip to content

Commit 20045c8

Browse files
committed
New release
1 parent f7f9d23 commit 20045c8

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-csv",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"main": "build/ng-csv.min.js",
55
"dependencies": {
66
"angular": "~1",

build/ng-csv.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ angular.module('ngCsv.services').
3434
service('CSV', ['$q', function ($q) {
3535

3636
var EOL = '\r\n';
37-
var BOM = "%ef%bb%bf";
37+
var BOM = "\ufeff";
3838

3939
/**
4040
* Stringify one field
@@ -87,12 +87,12 @@ angular.module('ngCsv.services').
8787
csvContent += headerString + EOL;
8888
}
8989

90-
var arrData;
90+
var arrData = [];
9191

9292
if (angular.isArray(responseData)) {
9393
arrData = responseData;
9494
}
95-
else {
95+
else if (angular.isFunction(responseData)) {
9696
arrData = responseData();
9797
}
9898

build/ng-csv.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-csv",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"main": "build/ng-csv.min.js",
55
"description": "Simple directive that turns arrays and objects into downloadable CSV files",
66
"repository": {

0 commit comments

Comments
 (0)