From 7c37aa2e8be8fb52b857e1ffbf9f914016b73cc2 Mon Sep 17 00:00:00 2001 From: william Date: Sun, 7 Feb 2016 00:59:29 -0500 Subject: [PATCH] runner --- lxc.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lxc.js b/lxc.js index 4c53f90..84c70c9 100644 --- a/lxc.js +++ b/lxc.js @@ -188,13 +188,14 @@ var lxcORM = function(){ var containers = {} this.isReady = false; this.whenReady = []; + callReady = this.callReady; this.list(function(data){ for(var idx = data.length; idx--;){ console.log(data[idx].name) containers[data[idx].name] = new Container(data[idx]); if(idx===0){ - this.callReady(); + callReady(); } } });