From 1ee46f6d2cd3ec55d09a1a193f7487f8208f41c0 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 8 Feb 2016 16:56:54 -0500 Subject: [PATCH] stuff --- lxc.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lxc.js b/lxc.js index 25d8ae9..4981e24 100644 --- a/lxc.js +++ b/lxc.js @@ -177,15 +177,16 @@ Container.prototype.info = function(callback){ info[temp[0].toLowerCase().trim()] = temp[1].trim(); } - that.UpdateFromInfo(info); + that.updateFromInfo(info); var args = [info].concat(Array.prototype.slice.call(arguments, 1)); - return callback.apply(this, args); + return callback.apply(that, args); }); }; -Container.prototype.UpdateFromInfo = function(data){ +Container.prototype.updateFromInfo = function(data){ for(var key in Object.keys(data)){ + console.log('update key:', key); this[key] = data[key]; }