{"action":"created","comment":{"url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments/46057194","id":46057194,"diff_hunk":"@@ -4,240 +4,162 @@\n //\n // ------------------------------------------------------------------------------\n \n-define([\n-  \"jquery\",\n-  \"data/currencies\",\n-  \"picker\",\n-  \"pickerDate\",\n-  \"pickerLegacy\",\n-  \"lib/widgets/flights_autocomplete\",\n-  \"lib/analytics/flights_omniture\",\n-  \"lib/analytics/flights\",\n-  \"lib/utils/local_store\"\n-], function($, currencies, picker, DatePicker, legacy, FlightsAutocomplete, Omniture, GoogleAnalytics, LocalStore) {\n+define([ \"jquery\", \"lib/widgets/flights_autocomplete\", \"lib/analytics/flights\", \"lib/analytics/flights_omniture\", \"pickerDate\" ], function($, FlightsAutocomplete, GoogleAnalytics, Omniture) {\n \n   \"use strict\";\n \n-  var autocomplete, countryCode, errorVisible, googleAnalytics, localStore, omniture, returnDatePicker, userCurrency,\n-      $el;\n+  var __bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };\n \n   function FlightsWidget() {\n-    autocomplete = new FlightsAutocomplete();\n-    googleAnalytics = new GoogleAnalytics(\"#js-flights-form\");\n-    omniture = new Omniture(\"#js-flights-submit\");\n-    localStore = new LocalStore();\n-\n-    $.ajax({\n-      type: \"GET\",\n-      url: \"http://www.lonelyplanet.com\",\n-      success: function(data, textStatus, request) {\n-        countryCode = request.getResponseHeader(\"X-GeoIP-CountryCode\");\n-      }\n-    });\n+    this._updateReturnDate = __bind(this._updateReturnDate, this);\n+    this._selectTripType = __bind(this._selectTripType, this);\n+    this._checkErrorsAndProceed = __bind(this._checkErrorsAndProceed, this);\n+    this.googleAnalytics = new GoogleAnalytics(\"#js-flights-form\");\n+    this.omniture = new Omniture(\"#js-flights-submit\");\n   }\n \n   FlightsWidget.prototype.init = function() {\n-    autocomplete.init();\n-    omniture.init();\n-\n-    $el = $(\".js-flights-widget\");\n-    userCurrency = localStore.getCookie(\"lpCurrency\");\n-\n-    $(document).ready(function() {\n-      this.$currency = $(\".js-currency-select .js-select\");\n-      this.$departDate = $(\".js-av-start\");\n-      this.$fromAirport = $(\".js-from-airport\");\n-      this.$fromCity = $(\".js-from-city\");\n-      this.$returnDate = $(\".js-av-end\");\n-      this.$toAirport = $(\".js-to-airport\");\n-      this.$toCity = $(\".js-to-city\");\n-\n-      this.initDatePickers();\n-      this.initCurrenySelect();\n-      this.listen();\n-    }.bind(this));\n-  };\n-\n-  FlightsWidget.prototype.buildUrl = function() {\n-    var departDate = this.formatDate(this.$departDate.val()),\n-        returnDate = \"\",\n-        url = \"http://flights.lonelyplanet.com/Flights?\",\n-        currency = this.$currency.val();\n-\n-    if (!this.$returnDate.prop(\"disabled\")) {\n-      returnDate = this.formatDate(this.$returnDate.val());\n-    }\n-\n-    url += \"&outboundDate=\" + departDate;\n-    url += \"&inboundDate=\" + returnDate;\n-    url += \"&originPlace=\" + (this.$fromAirport.val() === \"\" ? this.$fromCity.val() : this.$fromAirport.val());\n-    url += \"&destinationPlace=\" + (this.$toAirport.val() === \"\" ? this.$toCity.val() : this.$toAirport.val());\n-    url += \"&adults=\" + $(\".js-adult-num .js-select\").val();\n-    url += \"&children=\" + $(\".js-child-num .js-select\").val();\n-    url += \"&infants=\" + $(\".js-baby-num .js-select\").val();\n-    url += \"&locationSchema=\" + \"sky\";\n-    url += \"&cabinClass=\" + \"economy\";\n-    url += \"&country=\" + countryCode;\n-    url += \"&currency=\" + currency;\n-    url += \"&searchcontrols=true\";\n-\n-    return url;\n-  };\n-\n-  FlightsWidget.prototype.formatDate = function(date) {\n-    var month, day, year;\n-\n-    date = new Date(Date.parse(date));\n-\n-    day = this._zeroise(date.getDate()),\n-    month = this._zeroise(date.getMonth() + 1),\n-    year = date.getFullYear();\n-\n-    return year + \"-\" + month + \"-\" + day;\n+    this.$el = $(\".js-flights-widget\");\n+    this.$currency = this.$el.find(\".js-currency-select .js-select\");\n+    this.$departDate = this.$el.find(\".js-av-start\");\n+    this.$returnDate = this.$el.find(\".js-av-end\");\n+    this.$fromAirport = this.$el.find(\".js-from-airport\");\n+    this.$fromCity = this.$el.find(\"#js-from-city\");\n+    this.$toAirport = this.$el.find(\".js-to-airport\");\n+    this.$toCity = this.$el.find(\"#js-to-city\");\n+    this.$errorMsg = this.$el.find(\"#js-flights-submit .js-btn-error\");\n+    this.oneWay = function() {\n+      return this.$el.find(\".js-oneway-btn\").prop(\"checked\");\n+    };\n+    this.autocomplete = new FlightsAutocomplete(this.$currency, this.$fromAirport, this.$fromCity, this.$toAirport, this.$toCity);\n+    this.omniture.init();\n+    this.initDatePickers();\n+    return this.listen();\n   };\n \n-  FlightsWidget.prototype.initCurrenySelect = function() {\n-    var opts = \"\", currency;\n-\n-    for (var j = 0; j < currencies.length; j++) {\n-      currency = currencies[j].code;\n-      opts += \"<option value='\" + currency + \"'\" + (currency == userCurrency ? \"selected\" : \"\") + \">\" + currency + \"</option>\";\n+  FlightsWidget.prototype.initDatePickers = function() {\n+    var today;\n+    today = new Date();\n+    this._startDate(this.$departDate, today);\n+    if (!this.oneWay()) {\n+      return this._startDate(this.$returnDate, today, true);\n     }\n-\n-    this.$currency\n-      .removeProp(\"disabled\")\n-      .html(opts)\n-      .trigger(\"change\")\n-      .closest(\".js-currency-select\")\n-        .removeClass(\"is-disabled\");\n   };\n \n-  FlightsWidget.prototype.initDatePickers = function() {\n-    // Initialize the two date fields as Pickadate controls\n-    var today = new Date(),\n-        tomorrow = new Date(today.getTime() + 24 * 60 * 60 * 1000); // add 24 hours\n-\n-    this.$returnDate.pickadate({\n-      editable: false,\n-      min: today,\n-      format: \"d mmm yyyy\",\n-      onStart: function() {\n-        this.set({ select: tomorrow });\n-      }\n-    });\n+  // -------------------------------------------------------------------------\n+  // Subscribe to Events\n+  // -------------------------------------------------------------------------\n \n-    this.$departDate.pickadate({\n-      editable: false,\n-      min: today,\n-      format: \"d mmm yyyy\",\n-      onStart: function() {\n-        this.set({ select: today });\n-      }\n+  FlightsWidget.prototype.listen = function() {\n+    this.$el.find(\"#js-flights-form\").on(\"submit\", this._checkErrorsAndProceed);\n+    this.$el.find(\"[type=radio]\").on(\"change\", this._selectTripType);\n+    this.$el.find(\".input--text\").on(\"focus\", this._removeError);\n+    this.$el.find(\".js-city-input\").on(\"click\", function() {\n+      return this.select();\n     });\n+    this.$el.find(\".js-datepicker\").on(\"click\", (function(_this) {\n+      return function() {","path":"app/assets/javascripts/lib/widgets/flights.js","position":173,"original_position":173,"commit_id":"39975629021ccda7b39340fb6f11785214a6235a","original_commit_id":"39975629021ccda7b39340fb6f11785214a6235a","user":{"login":"WunderBart","id":1451471,"avatar_url":"https://avatars.githubusercontent.com/u/1451471?v=3","gravatar_id":"","url":"https://api.github.com/users/WunderBart","html_url":"https://github.com/WunderBart","followers_url":"https://api.github.com/users/WunderBart/followers","following_url":"https://api.github.com/users/WunderBart/following{/other_user}","gists_url":"https://api.github.com/users/WunderBart/gists{/gist_id}","starred_url":"https://api.github.com/users/WunderBart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WunderBart/subscriptions","organizations_url":"https://api.github.com/users/WunderBart/orgs","repos_url":"https://api.github.com/users/WunderBart/repos","events_url":"https://api.github.com/users/WunderBart/events{/privacy}","received_events_url":"https://api.github.com/users/WunderBart/received_events","type":"User","site_admin":false},"body":"This looks weird. Can we move it to another function maybe?","created_at":"2015-11-27T15:53:48Z","updated_at":"2015-11-27T15:53:48Z","html_url":"https://github.com/lonelyplanet/rizzo/pull/1404#discussion_r46057194","pull_request_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404","_links":{"self":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments/46057194"},"html":{"href":"https://github.com/lonelyplanet/rizzo/pull/1404#discussion_r46057194"},"pull_request":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404"}}},"pull_request":{"url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404","id":51814238,"html_url":"https://github.com/lonelyplanet/rizzo/pull/1404","diff_url":"https://github.com/lonelyplanet/rizzo/pull/1404.diff","patch_url":"https://github.com/lonelyplanet/rizzo/pull/1404.patch","issue_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1404","number":1404,"state":"open","locked":false,"title":"rewrite flights widget","user":{"login":"madmaniak","id":2125923,"avatar_url":"https://avatars.githubusercontent.com/u/2125923?v=3","gravatar_id":"","url":"https://api.github.com/users/madmaniak","html_url":"https://github.com/madmaniak","followers_url":"https://api.github.com/users/madmaniak/followers","following_url":"https://api.github.com/users/madmaniak/following{/other_user}","gists_url":"https://api.github.com/users/madmaniak/gists{/gist_id}","starred_url":"https://api.github.com/users/madmaniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmaniak/subscriptions","organizations_url":"https://api.github.com/users/madmaniak/orgs","repos_url":"https://api.github.com/users/madmaniak/repos","events_url":"https://api.github.com/users/madmaniak/events{/privacy}","received_events_url":"https://api.github.com/users/madmaniak/received_events","type":"User","site_admin":false},"body":"https://lonelyplanet.atlassian.net/browse/LPMC-217","created_at":"2015-11-25T16:14:05Z","updated_at":"2015-11-27T15:53:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0db9b2b446219ec1f97b3fddab1cdd871cf3fa29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404/commits","review_comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404/comments","review_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1404/comments","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/39975629021ccda7b39340fb6f11785214a6235a","head":{"label":"lonelyplanet:flights_widget_rewrite","ref":"flights_widget_rewrite","sha":"39975629021ccda7b39340fb6f11785214a6235a","user":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"repo":{"id":4184894,"name":"rizzo","full_name":"lonelyplanet/rizzo","owner":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lonelyplanet/rizzo","description":"UI Layer for lonelyplanet.com","fork":false,"url":"https://api.github.com/repos/lonelyplanet/rizzo","forks_url":"https://api.github.com/repos/lonelyplanet/rizzo/forks","keys_url":"https://api.github.com/repos/lonelyplanet/rizzo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lonelyplanet/rizzo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lonelyplanet/rizzo/teams","hooks_url":"https://api.github.com/repos/lonelyplanet/rizzo/hooks","issue_events_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/events{/number}","events_url":"https://api.github.com/repos/lonelyplanet/rizzo/events","assignees_url":"https://api.github.com/repos/lonelyplanet/rizzo/assignees{/user}","branches_url":"https://api.github.com/repos/lonelyplanet/rizzo/branches{/branch}","tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/tags","blobs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/refs{/sha}","trees_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/{sha}","languages_url":"https://api.github.com/repos/lonelyplanet/rizzo/languages","stargazers_url":"https://api.github.com/repos/lonelyplanet/rizzo/stargazers","contributors_url":"https://api.github.com/repos/lonelyplanet/rizzo/contributors","subscribers_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscribers","subscription_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscription","commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/commits{/sha}","git_commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/commits{/sha}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/comments{/number}","issue_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/comments{/number}","contents_url":"https://api.github.com/repos/lonelyplanet/rizzo/contents/{+path}","compare_url":"https://api.github.com/repos/lonelyplanet/rizzo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lonelyplanet/rizzo/merges","archive_url":"https://api.github.com/repos/lonelyplanet/rizzo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lonelyplanet/rizzo/downloads","issues_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues{/number}","pulls_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls{/number}","milestones_url":"https://api.github.com/repos/lonelyplanet/rizzo/milestones{/number}","notifications_url":"https://api.github.com/repos/lonelyplanet/rizzo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lonelyplanet/rizzo/labels{/name}","releases_url":"https://api.github.com/repos/lonelyplanet/rizzo/releases{/id}","created_at":"2012-04-30T17:06:06Z","updated_at":"2015-11-25T19:24:18Z","pushed_at":"2015-11-27T15:45:01Z","git_url":"git://github.com/lonelyplanet/rizzo.git","ssh_url":"git@github.com:lonelyplanet/rizzo.git","clone_url":"https://github.com/lonelyplanet/rizzo.git","svn_url":"https://github.com/lonelyplanet/rizzo","homepage":"","size":108179,"stargazers_count":492,"watchers_count":492,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":10,"forks":49,"open_issues":10,"watchers":492,"default_branch":"master"}},"base":{"label":"lonelyplanet:master","ref":"master","sha":"787629e2d680d6129d36c58ebe5bd4a3394d7dcc","user":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"repo":{"id":4184894,"name":"rizzo","full_name":"lonelyplanet/rizzo","owner":{"login":"lonelyplanet","id":114767,"avatar_url":"https://avatars.githubusercontent.com/u/114767?v=3","gravatar_id":"","url":"https://api.github.com/users/lonelyplanet","html_url":"https://github.com/lonelyplanet","followers_url":"https://api.github.com/users/lonelyplanet/followers","following_url":"https://api.github.com/users/lonelyplanet/following{/other_user}","gists_url":"https://api.github.com/users/lonelyplanet/gists{/gist_id}","starred_url":"https://api.github.com/users/lonelyplanet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonelyplanet/subscriptions","organizations_url":"https://api.github.com/users/lonelyplanet/orgs","repos_url":"https://api.github.com/users/lonelyplanet/repos","events_url":"https://api.github.com/users/lonelyplanet/events{/privacy}","received_events_url":"https://api.github.com/users/lonelyplanet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lonelyplanet/rizzo","description":"UI Layer for lonelyplanet.com","fork":false,"url":"https://api.github.com/repos/lonelyplanet/rizzo","forks_url":"https://api.github.com/repos/lonelyplanet/rizzo/forks","keys_url":"https://api.github.com/repos/lonelyplanet/rizzo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lonelyplanet/rizzo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lonelyplanet/rizzo/teams","hooks_url":"https://api.github.com/repos/lonelyplanet/rizzo/hooks","issue_events_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/events{/number}","events_url":"https://api.github.com/repos/lonelyplanet/rizzo/events","assignees_url":"https://api.github.com/repos/lonelyplanet/rizzo/assignees{/user}","branches_url":"https://api.github.com/repos/lonelyplanet/rizzo/branches{/branch}","tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/tags","blobs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/refs{/sha}","trees_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/{sha}","languages_url":"https://api.github.com/repos/lonelyplanet/rizzo/languages","stargazers_url":"https://api.github.com/repos/lonelyplanet/rizzo/stargazers","contributors_url":"https://api.github.com/repos/lonelyplanet/rizzo/contributors","subscribers_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscribers","subscription_url":"https://api.github.com/repos/lonelyplanet/rizzo/subscription","commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/commits{/sha}","git_commits_url":"https://api.github.com/repos/lonelyplanet/rizzo/git/commits{/sha}","comments_url":"https://api.github.com/repos/lonelyplanet/rizzo/comments{/number}","issue_comment_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues/comments{/number}","contents_url":"https://api.github.com/repos/lonelyplanet/rizzo/contents/{+path}","compare_url":"https://api.github.com/repos/lonelyplanet/rizzo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lonelyplanet/rizzo/merges","archive_url":"https://api.github.com/repos/lonelyplanet/rizzo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lonelyplanet/rizzo/downloads","issues_url":"https://api.github.com/repos/lonelyplanet/rizzo/issues{/number}","pulls_url":"https://api.github.com/repos/lonelyplanet/rizzo/pulls{/number}","milestones_url":"https://api.github.com/repos/lonelyplanet/rizzo/milestones{/number}","notifications_url":"https://api.github.com/repos/lonelyplanet/rizzo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lonelyplanet/rizzo/labels{/name}","releases_url":"https://api.github.com/repos/lonelyplanet/rizzo/releases{/id}","created_at":"2012-04-30T17:06:06Z","updated_at":"2015-11-25T19:24:18Z","pushed_at":"2015-11-27T15:45:01Z","git_url":"git://github.com/lonelyplanet/rizzo.git","ssh_url":"git@github.com:lonelyplanet/rizzo.git","clone_url":"https://github.com/lonelyplanet/rizzo.git","svn_url":"https://github.com/lonelyplanet/rizzo","homepage":"","size":108179,"stargazers_count":492,"watchers_count":492,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":10,"forks":49,"open_issues":10,"watchers":492,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404"},"html":{"href":"https://github.com/lonelyplanet/rizzo/pull/1404"},"issue":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1404"},"comments":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/issues/1404/comments"},"review_comments":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404/comments"},"review_comment":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/pulls/1404/commits"},"statuses":{"href":"https://api.github.com/repos/lonelyplanet/rizzo/statuses/39975629021ccda7b39340fb6f11785214a6235a"}}}}