summaryrefslogtreecommitdiff
path: root/js/flatfile.js
diff options
context:
space:
mode:
authorJules <jules@asdf.us>2016-10-25 21:02:46 -0400
committerJules <jules@asdf.us>2016-10-25 21:02:46 -0400
commit54e052d6f29756ba2ee94c31b85fd49e30e335a0 (patch)
treeaacc0ccd8ee014b36f59bfb4e90d1cd2068a5c35 /js/flatfile.js
parent0003c072cb83f48386c5e264d86b0aa3a9eaa20d (diff)
buttons for other courses
Diffstat (limited to 'js/flatfile.js')
-rwxr-xr-x[-rw-r--r--]js/flatfile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/flatfile.js b/js/flatfile.js
index 1b6b132..89a6b17 100644..100755
--- a/js/flatfile.js
+++ b/js/flatfile.js
@@ -7,7 +7,7 @@ Flatfile.prototype.load = function(){
var _this = this;
app.loader.register(this.key);
$.get("data/" + this.filename, function(data) {
- window[_this.key] = data.split("\n");
+ window[_this.key] = data.split("\n").filter(function(a){ return a && a.length > 0 });
app.loader.ready(_this.key);
})
} \ No newline at end of file