diff options
| author | Jules Laplace <jules@okfoc.us> | 2013-08-02 23:09:43 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2013-08-02 23:09:43 -0400 |
| commit | a9d7211162bedd318efafbd125bfbb2b712be48d (patch) | |
| tree | 0d609397f0ba48ca157f6174f0291e4c30664cb8 /js/flatfile.js | |
| parent | 0003c072cb83f48386c5e264d86b0aa3a9eaa20d (diff) | |
99
Diffstat (limited to 'js/flatfile.js')
| -rw-r--r-- | js/flatfile.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
