{"action":"created","comment":{"url":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/comments/84122679","pull_request_review_id":4919830,"id":84122679,"diff_hunk":"@@ -0,0 +1,43 @@\n+(function(App) {\n+\n+  'use strict';\n+\n+  var MobileMenu = Backbone.View.extend({\n+\n+    el: 'body',\n+\n+    events: {\n+      'click .btn-mobile-menu' : 'onClickToggleMenu',\n+      'click .btn-close' : 'onClickToggleMenu'\n+    },\n+\n+    initialize: function() {\n+      this.status =  new (Backbone.Model.extend({\n+        defaults: {\n+          hidden: true\n+        }\n+      }));\n+\n+      this._listeners();\n+    },\n+\n+    _listeners: function() {\n+      this.status.on('change:hidden', this.changedStatus, this);\n+    },\n+\n+    onClickToggleMenu: function() {\n+      var hidden = this.status.get('hidden');\n+      this.status.set('hidden', !hidden);\n+    },\n+\n+    changedStatus: function() {\n+      this.$('html').toggleClass('-menu-open');\n+      this.$('body').toggleClass('-menu-open');\n+      this.$('.c-mobile-menu').toggleClass('-is-open');\n+      this.$('.c-menu').toggleClass('-is-open');","path":"app/assets/javascripts/views/mobile_menu.js","position":37,"original_position":37,"commit_id":"d823f7a1a28c815056824baaff8dccd83e1bacf8","original_commit_id":"d823f7a1a28c815056824baaff8dccd83e1bacf8","user":{"login":"dhakelila","id":6608294,"avatar_url":"https://avatars.githubusercontent.com/u/6608294?v=3","gravatar_id":"","url":"https://api.github.com/users/dhakelila","html_url":"https://github.com/dhakelila","followers_url":"https://api.github.com/users/dhakelila/followers","following_url":"https://api.github.com/users/dhakelila/following{/other_user}","gists_url":"https://api.github.com/users/dhakelila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhakelila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhakelila/subscriptions","organizations_url":"https://api.github.com/users/dhakelila/orgs","repos_url":"https://api.github.com/users/dhakelila/repos","events_url":"https://api.github.com/users/dhakelila/events{/privacy}","received_events_url":"https://api.github.com/users/dhakelila/received_events","type":"User","site_admin":false},"body":"It is nicer and more solid if we toggle the class in relation with the attribute from the status. ","created_at":"2016-10-19T17:25:01Z","updated_at":"2016-10-19T17:25:10Z","html_url":"https://github.com/Vizzuality/grid-arendal/pull/15#discussion_r84122679","pull_request_url":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/comments/84122679"},"html":{"href":"https://github.com/Vizzuality/grid-arendal/pull/15#discussion_r84122679"},"pull_request":{"href":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/15","id":90017624,"html_url":"https://github.com/Vizzuality/grid-arendal/pull/15","diff_url":"https://github.com/Vizzuality/grid-arendal/pull/15.diff","patch_url":"https://github.com/Vizzuality/grid-arendal/pull/15.patch","issue_url":"https://api.github.com/repos/Vizzuality/grid-arendal/issues/15","number":15,"state":"open","locked":false,"title":"Feature: menu modal","user":{"login":"edbrett","id":20288774,"avatar_url":"https://avatars.githubusercontent.com/u/20288774?v=3","gravatar_id":"","url":"https://api.github.com/users/edbrett","html_url":"https://github.com/edbrett","followers_url":"https://api.github.com/users/edbrett/followers","following_url":"https://api.github.com/users/edbrett/following{/other_user}","gists_url":"https://api.github.com/users/edbrett/gists{/gist_id}","starred_url":"https://api.github.com/users/edbrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edbrett/subscriptions","organizations_url":"https://api.github.com/users/edbrett/orgs","repos_url":"https://api.github.com/users/edbrett/repos","events_url":"https://api.github.com/users/edbrett/events{/privacy}","received_events_url":"https://api.github.com/users/edbrett/received_events","type":"User","site_admin":false},"body":"JS to open and close mobile menu with some style adjustments","created_at":"2016-10-19T14:12:18Z","updated_at":"2016-10-19T17:25:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da19d1913ac0806540b00e62ab4ba14aa3103cf5","assignee":{"login":"dhakelila","id":6608294,"avatar_url":"https://avatars.githubusercontent.com/u/6608294?v=3","gravatar_id":"","url":"https://api.github.com/users/dhakelila","html_url":"https://github.com/dhakelila","followers_url":"https://api.github.com/users/dhakelila/followers","following_url":"https://api.github.com/users/dhakelila/following{/other_user}","gists_url":"https://api.github.com/users/dhakelila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhakelila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhakelila/subscriptions","organizations_url":"https://api.github.com/users/dhakelila/orgs","repos_url":"https://api.github.com/users/dhakelila/repos","events_url":"https://api.github.com/users/dhakelila/events{/privacy}","received_events_url":"https://api.github.com/users/dhakelila/received_events","type":"User","site_admin":false},"assignees":[{"login":"dhakelila","id":6608294,"avatar_url":"https://avatars.githubusercontent.com/u/6608294?v=3","gravatar_id":"","url":"https://api.github.com/users/dhakelila","html_url":"https://github.com/dhakelila","followers_url":"https://api.github.com/users/dhakelila/followers","following_url":"https://api.github.com/users/dhakelila/following{/other_user}","gists_url":"https://api.github.com/users/dhakelila/gists{/gist_id}","starred_url":"https://api.github.com/users/dhakelila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhakelila/subscriptions","organizations_url":"https://api.github.com/users/dhakelila/orgs","repos_url":"https://api.github.com/users/dhakelila/repos","events_url":"https://api.github.com/users/dhakelila/events{/privacy}","received_events_url":"https://api.github.com/users/dhakelila/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/15/commits","review_comments_url":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/15/comments","review_comment_url":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vizzuality/grid-arendal/issues/15/comments","statuses_url":"https://api.github.com/repos/Vizzuality/grid-arendal/statuses/d823f7a1a28c815056824baaff8dccd83e1bacf8","head":{"label":"Vizzuality:feature/menu-modal","ref":"feature/menu-modal","sha":"d823f7a1a28c815056824baaff8dccd83e1bacf8","user":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"repo":{"id":68287633,"name":"grid-arendal","full_name":"Vizzuality/grid-arendal","owner":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vizzuality/grid-arendal","description":"Institutional Website for GRID Arendal","fork":false,"url":"https://api.github.com/repos/Vizzuality/grid-arendal","forks_url":"https://api.github.com/repos/Vizzuality/grid-arendal/forks","keys_url":"https://api.github.com/repos/Vizzuality/grid-arendal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vizzuality/grid-arendal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vizzuality/grid-arendal/teams","hooks_url":"https://api.github.com/repos/Vizzuality/grid-arendal/hooks","issue_events_url":"https://api.github.com/repos/Vizzuality/grid-arendal/issues/events{/number}","events_url":"https://api.github.com/repos/Vizzuality/grid-arendal/events","assignees_url":"https://api.github.com/repos/Vizzuality/grid-arendal/assignees{/user}","branches_url":"https://api.github.com/repos/Vizzuality/grid-arendal/branches{/branch}","tags_url":"https://api.github.com/repos/Vizzuality/grid-arendal/tags","blobs_url":"https://api.github.com/repos/Vizzuality/grid-arendal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vizzuality/grid-arendal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vizzuality/grid-arendal/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vizzuality/grid-arendal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vizzuality/grid-arendal/statuses/{sha}","languages_url":"https://api.github.com/repos/Vizzuality/grid-arendal/languages","stargazers_url":"https://api.github.com/repos/Vizzuality/grid-arendal/stargazers","contributors_url":"https://api.github.com/repos/Vizzuality/grid-arendal/contributors","subscribers_url":"https://api.github.com/repos/Vizzuality/grid-arendal/subscribers","subscription_url":"https://api.github.com/repos/Vizzuality/grid-arendal/subscription","commits_url":"https://api.github.com/repos/Vizzuality/grid-arendal/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vizzuality/grid-arendal/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vizzuality/grid-arendal/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vizzuality/grid-arendal/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vizzuality/grid-arendal/contents/{+path}","compare_url":"https://api.github.com/repos/Vizzuality/grid-arendal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vizzuality/grid-arendal/merges","archive_url":"https://api.github.com/repos/Vizzuality/grid-arendal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vizzuality/grid-arendal/downloads","issues_url":"https://api.github.com/repos/Vizzuality/grid-arendal/issues{/number}","pulls_url":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls{/number}","milestones_url":"https://api.github.com/repos/Vizzuality/grid-arendal/milestones{/number}","notifications_url":"https://api.github.com/repos/Vizzuality/grid-arendal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vizzuality/grid-arendal/labels{/name}","releases_url":"https://api.github.com/repos/Vizzuality/grid-arendal/releases{/id}","deployments_url":"https://api.github.com/repos/Vizzuality/grid-arendal/deployments","created_at":"2016-09-15T11:16:49Z","updated_at":"2016-09-15T11:21:39Z","pushed_at":"2016-10-19T17:16:06Z","git_url":"git://github.com/Vizzuality/grid-arendal.git","ssh_url":"git@github.com:Vizzuality/grid-arendal.git","clone_url":"https://github.com/Vizzuality/grid-arendal.git","svn_url":"https://github.com/Vizzuality/grid-arendal","homepage":null,"size":26659,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Vizzuality:develop","ref":"develop","sha":"6e87ac01ae7756418cdd9b841dab647914053139","user":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"repo":{"id":68287633,"name":"grid-arendal","full_name":"Vizzuality/grid-arendal","owner":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars.githubusercontent.com/u/305994?v=3","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vizzuality/grid-arendal","description":"Institutional Website for GRID Arendal","fork":false,"url":"https://api.github.com/repos/Vizzuality/grid-arendal","forks_url":"https://api.github.com/repos/Vizzuality/grid-arendal/forks","keys_url":"https://api.github.com/repos/Vizzuality/grid-arendal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vizzuality/grid-arendal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vizzuality/grid-arendal/teams","hooks_url":"https://api.github.com/repos/Vizzuality/grid-arendal/hooks","issue_events_url":"https://api.github.com/repos/Vizzuality/grid-arendal/issues/events{/number}","events_url":"https://api.github.com/repos/Vizzuality/grid-arendal/events","assignees_url":"https://api.github.com/repos/Vizzuality/grid-arendal/assignees{/user}","branches_url":"https://api.github.com/repos/Vizzuality/grid-arendal/branches{/branch}","tags_url":"https://api.github.com/repos/Vizzuality/grid-arendal/tags","blobs_url":"https://api.github.com/repos/Vizzuality/grid-arendal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vizzuality/grid-arendal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vizzuality/grid-arendal/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vizzuality/grid-arendal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vizzuality/grid-arendal/statuses/{sha}","languages_url":"https://api.github.com/repos/Vizzuality/grid-arendal/languages","stargazers_url":"https://api.github.com/repos/Vizzuality/grid-arendal/stargazers","contributors_url":"https://api.github.com/repos/Vizzuality/grid-arendal/contributors","subscribers_url":"https://api.github.com/repos/Vizzuality/grid-arendal/subscribers","subscription_url":"https://api.github.com/repos/Vizzuality/grid-arendal/subscription","commits_url":"https://api.github.com/repos/Vizzuality/grid-arendal/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vizzuality/grid-arendal/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vizzuality/grid-arendal/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vizzuality/grid-arendal/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vizzuality/grid-arendal/contents/{+path}","compare_url":"https://api.github.com/repos/Vizzuality/grid-arendal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vizzuality/grid-arendal/merges","archive_url":"https://api.github.com/repos/Vizzuality/grid-arendal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vizzuality/grid-arendal/downloads","issues_url":"https://api.github.com/repos/Vizzuality/grid-arendal/issues{/number}","pulls_url":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls{/number}","milestones_url":"https://api.github.com/repos/Vizzuality/grid-arendal/milestones{/number}","notifications_url":"https://api.github.com/repos/Vizzuality/grid-arendal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vizzuality/grid-arendal/labels{/name}","releases_url":"https://api.github.com/repos/Vizzuality/grid-arendal/releases{/id}","deployments_url":"https://api.github.com/repos/Vizzuality/grid-arendal/deployments","created_at":"2016-09-15T11:16:49Z","updated_at":"2016-09-15T11:21:39Z","pushed_at":"2016-10-19T17:16:06Z","git_url":"git://github.com/Vizzuality/grid-arendal.git","ssh_url":"git@github.com:Vizzuality/grid-arendal.git","clone_url":"https://github.com/Vizzuality/grid-arendal.git","svn_url":"https://github.com/Vizzuality/grid-arendal","homepage":null,"size":26659,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/15"},"html":{"href":"https://github.com/Vizzuality/grid-arendal/pull/15"},"issue":{"href":"https://api.github.com/repos/Vizzuality/grid-arendal/issues/15"},"comments":{"href":"https://api.github.com/repos/Vizzuality/grid-arendal/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vizzuality/grid-arendal/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/Vizzuality/grid-arendal/statuses/d823f7a1a28c815056824baaff8dccd83e1bacf8"}}}}
{"actor":{"display_login":"dhakelila"}}