GitHub PullRequestReviewCommentEvent at 2014-02-06 18:35:53
Repository: js-winter-week-3
Actor: BenjaminVerble
Payload: {"comment":{"url":"https://api.github.com/repos/portlandcodeschool/js-winter-week-3/pulls/comments/9512062","id":9512062,"diff_hunk":"@@ -0,0 +1,66 @@\n+/*  Intermediate Assignment\n+\n+    Make an AppointmentBook class to keep your appointments. It should be able to do the following:\n+        add a new appointment\n+        cancel an appointment\n+        reschedule an existing appointment for a new time\n+        list all existing appointments\n+*/\n+\n+\n+function AppointmentBook (appts, location, date) {   // or function appointmentBook (appt, location, date)\n+\tif(!(this instanceof AppointmentBook))\n+\t\treturn new Appointment();\n+\tthis.appts = appts;\n+\tthis.location = location;\n+\tthis.date = date;\n+}\n+\t// add function:    Can't we just add a new appointment using the \"new\" operator?\n+/*\n+AppointmentBook.prototype.add = function() {\n+\t\tthing.appt = this.idk ++;\n+\t\tthis.appts.push(thing);\n+\t\treturn thing.idk;\n+\t},\n+*/\n+\t// cancel function,\n+\t\n+AppointmentBook.prototype.cancel = function(whichAppt) {\n+\tvar itemIndex = -1;\n+\tthis.appts.forEach(function (item, index) {\n+\t\tif (item.id === item)\n+\t\t\ti = index;\n+\t});\n+\tif (idk === -1) {\n+\treturn console.log(\"Entry not found.\");\t  \n+\t} else if {     // if it's included, delete it","path":"amandaHoule/appointmentBook.js","position":36,"original_position":36,"commit_id":"a149e3bfd0e543a4bfdf7822aa907ec231a86db2","original_commit_id":"a149e3bfd0e543a4bfdf7822aa907ec231a86db2","user":{"login":"BenjaminVerble","id":3958020,"avatar_url":"https://gravatar.com/avatar/e0a8420578b0bec41099c568e1d497c8?d=https%3A%2F%2Fidenticons.github.com%2F13bb8bd342b9b9803fb257eb6e110153.png&r=x","gravatar_id":"e0a8420578b0bec41099c568e1d497c8","url":"https://api.github.com/users/BenjaminVerble","html_url":"https://github.com/BenjaminVerble","followers_url":"https://api.github.com/users/BenjaminVerble/followers","following_url":"https://api.github.com/users/BenjaminVerble/following{/other_user}","gists_url":"https://api.github.com/users/BenjaminVerble/gists{/gist_id}","starred_url":"https://api.github.com/users/BenjaminVerble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenjaminVerble/subscriptions","organizations_url":"https://api.github.com/users/BenjaminVerble/orgs","repos_url":"https://api.github.com/users/BenjaminVerble/repos","events_url":"https://api.github.com/users/BenjaminVerble/events{/privacy}","received_events_url":"https://api.github.com/users/BenjaminVerble/received_events","type":"User","site_admin":false},"body":"with an else/if you need a `(condition)`","created_at":"2014-02-06T18:35:53Z","updated_at":"2014-02-06T18:35:53Z","html_url":"https://github.com/portlandcodeschool/js-winter-week-3/pull/11#discussion_r9512062","pull_request_url":"https://api.github.com/repos/portlandcodeschool/js-winter-week-3/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/portlandcodeschool/js-winter-week-3/pulls/comments/9512062"},"html":{"href":"https://github.com/portlandcodeschool/js-winter-week-3/pull/11#discussion_r9512062"},"pull_request":{"href":"https://api.github.com/repos/portlandcodeschool/js-winter-week-3/pulls/11"}}}}