summaryrefslogtreecommitdiff
path: root/js/flatfile.js
diff options
context:
space:
mode:
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