This commit is contained in:
William Mantly 2016-02-07 00:47:07 -05:00
parent 45bf9c67f6
commit 85e0dcf729

7
lxc.js
View File

@ -193,10 +193,13 @@ var lxcORM = function(){
for(var idx = data.length; idx--;){ for(var idx = data.length; idx--;){
console.log(data[idx].name) console.log(data[idx].name)
containers[data[idx].name] = new Container(data[idx]); containers[data[idx].name] = new Container(data[idx]);
if(idx===0){
this.containers = containers
this.callReady();
}
} }
}); });
this.containers = containers
this.callReady();
}; };
lxcORM.prototype.callReady = function(){ lxcORM.prototype.callReady = function(){