stuff
This commit is contained in:
parent
1ee46f6d2c
commit
a74d7130d7
6
lxc.js
6
lxc.js
@ -185,9 +185,9 @@ Container.prototype.info = function(callback){
|
|||||||
};
|
};
|
||||||
|
|
||||||
Container.prototype.updateFromInfo = function(data){
|
Container.prototype.updateFromInfo = function(data){
|
||||||
for(var key in Object.keys(data)){
|
var key = Object.keys(data);
|
||||||
console.log('update key:', key);
|
for(var i=keys.length; i--;){
|
||||||
this[key] = data[key];
|
this[key[i]] = data[key[i]];
|
||||||
}
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user