summaryrefslogtreecommitdiff
path: root/js/flatfile.js
blob: 1b6b132b3487c8fabbf7a50d3e039d7a979bb890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function Flatfile (key, filename) {
	this.key = key;
	this.filename = filename;
	this.load();
}
Flatfile.prototype.load = function(){
	var _this = this;
	app.loader.register(this.key);
	$.get("data/" + this.filename, function(data) {
		window[_this.key] = data.split("\n");
		app.loader.ready(_this.key);
	})
}