Skip to content

Commit

Permalink
Bugfixes and Formatting
Browse files Browse the repository at this point in the history
Addressed bugs involving names not saving correctly
Removed several exception throws that caused issues
  • Loading branch information
andylincoln committed Mar 12, 2014
1 parent c47f6d4 commit 9c58947
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions js/person.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ function Person() {
}

function dateOfBirthSetter(date) {

dateBirth = date;
}

Expand All @@ -67,7 +66,6 @@ function Person() {
}

function dateOfDeathSetter(date) {

dateDeath = date;
}

Expand All @@ -76,11 +74,6 @@ function Person() {
}

function firstNameSetter(strName) {

if (!(typeof strName === "string")) {
throw Exception("Person.setFirstName(): argument strName expects type string");
}

firstName = strName;
}

Expand All @@ -90,10 +83,6 @@ function Person() {

function formerSpouseSetter(person) {

if (person === null) {
throw Exception("Person.addFormerSpouse(): Null argument invalid, expects type Person");
}

if (formerSpouses === null) {
formerSpouses = Map();
}
Expand All @@ -106,11 +95,6 @@ function Person() {
}

function genderSetter(strGender) {

if (!(typeof strGender === "string")) {
throw Exception("Person.setGender(): argument strGender expects type string");
}

gender = strGender;
}

Expand All @@ -131,11 +115,6 @@ function Person() {
}

function lastNameSetter(strName) {

if (!(typeof strName === "string")) {
throw("Person.setLastName: argument strName expects type string");
}

lastName = strName;
}

Expand All @@ -144,11 +123,6 @@ function Person() {
}

function middleNameSetter(strName) {

if (!(typeof strName === "string")) {
throw("Person.setMiddleName: argument strName expects type string");
}

middleName = strName;
}

Expand Down

0 comments on commit 9c58947

Please sign in to comment.