From a9d7211162bedd318efafbd125bfbb2b712be48d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 2 Aug 2013 23:09:43 -0400 Subject: 99 --- js/flatfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/flatfile.js') diff --git a/js/flatfile.js b/js/flatfile.js index 1b6b132..89a6b17 100644 --- 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