stuff
This commit is contained in:
parent
99dcc47e00
commit
1ee46f6d2c
7
lxc.js
7
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];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user