Ext.namespace('Kelda', 'Kelda.Info');

Kelda.Info.ObjectMgr = function() {
	var _instance = null;
	return {
		getInstance:function() {
			if(_instance === null)
				_instance = {
					idMap:[],
					reg:function(obj) {
						this.idMap[obj.id] = obj;
					},
					get:function(id) {
						return this.idMap[id];
					},
					unreg:function(id) {
						if(!delete this.idMap[obj.id])
							console.log('ObjMgr: could not delete ');
					}
			};
			return _instance;
		}
	};
}();