From 54e052d6f29756ba2ee94c31b85fd49e30e335a0 Mon Sep 17 00:00:00 2001 From: Jules Date: Tue, 25 Oct 2016 21:02:46 -0400 Subject: buttons for other courses --- js/flatfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 js/flatfile.js (limited to 'js/flatfile.js') diff --git a/js/flatfile.js b/js/flatfile.js old mode 100644 new mode 100755 index 1b6b132..89a6b17 --- 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 -- cgit v1.2.3-70-g09d2