var ExactWidgetLoader = function() {
	this.loaders = [];
	this.add = function(options) {
		this.loaders.push(options);
		return this;
	};
	this.get = function() {
		return this.loaders;
	};
	this.clear = function() {
		this.loaders = [];
		return this;
	};
	this.setOne = function(key, options) {
		this.loaders[key] = options;
		return this;
	};
	return this;
};

var BaseWidgetLoader = function() {
	this.add = function(t) {
		if (t) {
			if (!window[t]) {
				window[t] = new ExactWidgetLoader();
			}
		}
	};
	return this;
};

var widgetLoader = new BaseWidgetLoader();
