From 85e0dcf729efef0b0aab1025e3032508b6b70204 Mon Sep 17 00:00:00 2001 From: william Date: Sun, 7 Feb 2016 00:47:07 -0500 Subject: [PATCH] runner --- lxc.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lxc.js b/lxc.js index 373d0e6..e1fe5dc 100644 --- a/lxc.js +++ b/lxc.js @@ -193,10 +193,13 @@ var lxcORM = function(){ for(var idx = data.length; idx--;){ console.log(data[idx].name) 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(){