This commit is contained in:
William Mantly 2016-02-08 13:49:59 -05:00
parent 8c0d3bd6da
commit 46ad5ae25d

6
lxc.js
View File

@ -186,16 +186,16 @@ Container.prototype.UpdateFromInfo = function(data){
var lxcORM = function(){ var lxcORM = function(){
var orm = this; var that = this;
var containers = {}; var 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--;){
orm.containers[data[idx].name] = new Container(data[idx]); that.containers[data[idx].name] = new Container(data[idx]);
if(idx===0){ if(idx===0){
orm.callReady; that.callReady;
} }
} }
}); });