Rename variables

This commit is contained in:
Gustavo Maximiliano Cortez 2015-12-07 12:52:42 -03:00
commit 8e69c0aa7e
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 19 additions and 19 deletions

View file

@ -15,7 +15,7 @@ Profile.create = function(opts) {
var x = new Profile();
x.createdOn = Date.now();
x.credentials = opts.credentials || [];
x.agreeDisclaimer = false;
x.disclaimerAccepted = false;
return x;
};
@ -24,7 +24,7 @@ Profile.fromObj = function(obj) {
x.createdOn = obj.createdOn;
x.credentials = obj.credentials;
x.agreeDisclaimer = obj.agreeDisclaimer;
x.disclaimerAccepted = obj.disclaimerAccepted;
if (x.credentials[0] && typeof x.credentials[0] != 'object')
throw ("credentials should be an object");