Skip to content

Commit 17970dc

Browse files
committed
Fix bug affecting importing files in GUI
1 parent 3ed261b commit 17970dc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/gui/mapshaper-import-control.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function ImportControl(editor) {
3737
// TODO: doesn't need to be public
3838
// Receive: FileList
3939
this.readFiles = function(files) {
40-
(files || []).forEach(this.readFile, this);
40+
utils.forEach((files || []), this.readFile, this);
4141
};
4242

4343
// Receive: File object

www/mapshaper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11820,7 +11820,7 @@ function ImportControl(editor) {
1182011820
// TODO: doesn't need to be public
1182111821
// Receive: FileList
1182211822
this.readFiles = function(files) {
11823-
(files || []).forEach(this.readFile, this);
11823+
utils.forEach((files || []), this.readFile, this);
1182411824
};
1182511825

1182611826
// Receive: File object

0 commit comments

Comments
 (0)