new encryption policy

This commit is contained in:
Rodolphe Breard 2012-11-28 15:38:21 +01:00
parent fff80e0876
commit c50f57fcfe
2 changed files with 5 additions and 13 deletions

View file

@ -108,21 +108,13 @@ OptionsManager.prototype.getElemValue = function(elem) {
val = this.types.get[type](elem);
}
return this.encrypt(val);
return val;
};
OptionsManager.prototype.setElemValue = function(elem, val) {
var type = elem.getAttribute('type');
if (typeof this.types.set[type] !== "undefined") {
this.types.set[type](elem, this.decrypt(val));
this.types.set[type](elem, val);
}
};
OptionsManager.prototype.encrypt = function(value) {
return value;
};
OptionsManager.prototype.decrypt = function(value) {
return value;
};