This commit is contained in:
William Mantly 2016-02-07 00:45:48 -05:00
parent 0c891f62ef
commit d34a482a60

6
lxc.js
View File

@ -185,17 +185,17 @@ Container.prototype.UpdateFromInfo = function(data){
var lxcORM = function(){ var lxcORM = function(){
this.containers = {} containers = {}
this.isReady = false; this.isReady = false;
this.whenReady = []; this.whenReady = [];
this.list(function(data){ this.list(function(data){
for(var idx = data.length; idx--;){ for(var idx = data.length; idx--;){
console.log(data[idx].name) console.log(data[idx].name)
this.containers[data[idx].name] = new Container(data[idx]); containers[data[idx].name] = new Container(data[idx]);
} }
}); });
this.containers = containers
this.callReady(); this.callReady();
}; };