added TSLint for TypeScript code style checking, fixed associated errors

This commit is contained in:
alecmerdler 2017-06-19 23:17:42 -07:00
parent 6a7722cadb
commit 41e7e559a6
43 changed files with 253 additions and 730 deletions

View file

@ -86,7 +86,7 @@ export class DataFileServiceImpl implements DataFileService {
var zip = null;
var zipFiles = null;
try {
var zip = new JSZip(buf);
zip = new JSZip(buf);
zipFiles = zip.files;
} catch (e) {
failure();
@ -164,9 +164,9 @@ export class DataFileServiceImpl implements DataFileService {
'name': this.getName(path),
'path': path,
'canRead': true,
'toBlob': (function(currentFile) {
'toBlob': (function(file) {
return function() {
return new Blob([currentFile.buffer], {type: 'application/octet-binary'});
return new Blob([file.buffer], {type: 'application/octet-binary'});
};
}(currentFile))
});
@ -179,4 +179,4 @@ export class DataFileServiceImpl implements DataFileService {
failure();
}
}
}
}