{"action":"created","comment":{"url":"https://api.github.com/repos/ethereum/browser-solidity/pulls/comments/68991743","id":68991743,"diff_hunk":"@@ -2,7 +2,56 @@\n \n var utils = require('./utils');\n \n-function StorageHandler (updateFiles) {\n+function Storage (updateFiles) {\n+  var EDITOR_SIZE_CACHE_KEY = 'editor-size-cache';\n+\n+  this.rename = function (originalName, newName) {\n+    var content = this.get(originalName);\n+    this.set(newName, content);\n+    this.remove(originalName);\n+  };\n+\n+  this.remove = function (name) {","path":"src/app/storage.js","position":14,"original_position":14,"commit_id":"35e9fee7186c8b67c2df81200a6f55a0d9a19c8c","original_commit_id":"35e9fee7186c8b67c2df81200a6f55a0d9a19c8c","user":{"login":"chriseth","id":9073706,"avatar_url":"https://avatars.githubusercontent.com/u/9073706?v=3","gravatar_id":"","url":"https://api.github.com/users/chriseth","html_url":"https://github.com/chriseth","followers_url":"https://api.github.com/users/chriseth/followers","following_url":"https://api.github.com/users/chriseth/following{/other_user}","gists_url":"https://api.github.com/users/chriseth/gists{/gist_id}","starred_url":"https://api.github.com/users/chriseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriseth/subscriptions","organizations_url":"https://api.github.com/users/chriseth/orgs","repos_url":"https://api.github.com/users/chriseth/repos","events_url":"https://api.github.com/users/chriseth/events{/privacy}","received_events_url":"https://api.github.com/users/chriseth/received_events","type":"User","site_admin":false},"body":"Why not use prototypes?","created_at":"2016-06-29T17:34:04Z","updated_at":"2016-06-29T17:34:04Z","html_url":"https://github.com/ethereum/browser-solidity/pull/72#discussion_r68991743","pull_request_url":"https://api.github.com/repos/ethereum/browser-solidity/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/ethereum/browser-solidity/pulls/comments/68991743"},"html":{"href":"https://github.com/ethereum/browser-solidity/pull/72#discussion_r68991743"},"pull_request":{"href":"https://api.github.com/repos/ethereum/browser-solidity/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/ethereum/browser-solidity/pulls/72","id":72895333,"html_url":"https://github.com/ethereum/browser-solidity/pull/72","diff_url":"https://github.com/ethereum/browser-solidity/pull/72.diff","patch_url":"https://github.com/ethereum/browser-solidity/pull/72.patch","issue_url":"https://api.github.com/repos/ethereum/browser-solidity/issues/72","number":72,"state":"open","locked":false,"title":"Pulling all storage-related methods into storage.js","user":{"login":"redsquirrel","id":2512,"avatar_url":"https://avatars.githubusercontent.com/u/2512?v=3","gravatar_id":"","url":"https://api.github.com/users/redsquirrel","html_url":"https://github.com/redsquirrel","followers_url":"https://api.github.com/users/redsquirrel/followers","following_url":"https://api.github.com/users/redsquirrel/following{/other_user}","gists_url":"https://api.github.com/users/redsquirrel/gists{/gist_id}","starred_url":"https://api.github.com/users/redsquirrel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redsquirrel/subscriptions","organizations_url":"https://api.github.com/users/redsquirrel/orgs","repos_url":"https://api.github.com/users/redsquirrel/repos","events_url":"https://api.github.com/users/redsquirrel/events{/privacy}","received_events_url":"https://api.github.com/users/redsquirrel/received_events","type":"User","site_admin":false},"body":"Responding to #64","created_at":"2016-06-07T15:21:27Z","updated_at":"2016-06-29T17:34:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad6c3a6d13a55b6ba7da7daaefc61da42339e422","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ethereum/browser-solidity/pulls/72/commits","review_comments_url":"https://api.github.com/repos/ethereum/browser-solidity/pulls/72/comments","review_comment_url":"https://api.github.com/repos/ethereum/browser-solidity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ethereum/browser-solidity/issues/72/comments","statuses_url":"https://api.github.com/repos/ethereum/browser-solidity/statuses/35e9fee7186c8b67c2df81200a6f55a0d9a19c8c","head":{"label":"redsquirrel:group-storage-methods","ref":"group-storage-methods","sha":"35e9fee7186c8b67c2df81200a6f55a0d9a19c8c","user":{"login":"redsquirrel","id":2512,"avatar_url":"https://avatars.githubusercontent.com/u/2512?v=3","gravatar_id":"","url":"https://api.github.com/users/redsquirrel","html_url":"https://github.com/redsquirrel","followers_url":"https://api.github.com/users/redsquirrel/followers","following_url":"https://api.github.com/users/redsquirrel/following{/other_user}","gists_url":"https://api.github.com/users/redsquirrel/gists{/gist_id}","starred_url":"https://api.github.com/users/redsquirrel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redsquirrel/subscriptions","organizations_url":"https://api.github.com/users/redsquirrel/orgs","repos_url":"https://api.github.com/users/redsquirrel/repos","events_url":"https://api.github.com/users/redsquirrel/events{/privacy}","received_events_url":"https://api.github.com/users/redsquirrel/received_events","type":"User","site_admin":false},"repo":{"id":59594301,"name":"browser-solidity","full_name":"redsquirrel/browser-solidity","owner":{"login":"redsquirrel","id":2512,"avatar_url":"https://avatars.githubusercontent.com/u/2512?v=3","gravatar_id":"","url":"https://api.github.com/users/redsquirrel","html_url":"https://github.com/redsquirrel","followers_url":"https://api.github.com/users/redsquirrel/followers","following_url":"https://api.github.com/users/redsquirrel/following{/other_user}","gists_url":"https://api.github.com/users/redsquirrel/gists{/gist_id}","starred_url":"https://api.github.com/users/redsquirrel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redsquirrel/subscriptions","organizations_url":"https://api.github.com/users/redsquirrel/orgs","repos_url":"https://api.github.com/users/redsquirrel/repos","events_url":"https://api.github.com/users/redsquirrel/events{/privacy}","received_events_url":"https://api.github.com/users/redsquirrel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/redsquirrel/browser-solidity","description":"Browser-Only Solidity IDE and Runtime Environment","fork":true,"url":"https://api.github.com/repos/redsquirrel/browser-solidity","forks_url":"https://api.github.com/repos/redsquirrel/browser-solidity/forks","keys_url":"https://api.github.com/repos/redsquirrel/browser-solidity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redsquirrel/browser-solidity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redsquirrel/browser-solidity/teams","hooks_url":"https://api.github.com/repos/redsquirrel/browser-solidity/hooks","issue_events_url":"https://api.github.com/repos/redsquirrel/browser-solidity/issues/events{/number}","events_url":"https://api.github.com/repos/redsquirrel/browser-solidity/events","assignees_url":"https://api.github.com/repos/redsquirrel/browser-solidity/assignees{/user}","branches_url":"https://api.github.com/repos/redsquirrel/browser-solidity/branches{/branch}","tags_url":"https://api.github.com/repos/redsquirrel/browser-solidity/tags","blobs_url":"https://api.github.com/repos/redsquirrel/browser-solidity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redsquirrel/browser-solidity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redsquirrel/browser-solidity/git/refs{/sha}","trees_url":"https://api.github.com/repos/redsquirrel/browser-solidity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redsquirrel/browser-solidity/statuses/{sha}","languages_url":"https://api.github.com/repos/redsquirrel/browser-solidity/languages","stargazers_url":"https://api.github.com/repos/redsquirrel/browser-solidity/stargazers","contributors_url":"https://api.github.com/repos/redsquirrel/browser-solidity/contributors","subscribers_url":"https://api.github.com/repos/redsquirrel/browser-solidity/subscribers","subscription_url":"https://api.github.com/repos/redsquirrel/browser-solidity/subscription","commits_url":"https://api.github.com/repos/redsquirrel/browser-solidity/commits{/sha}","git_commits_url":"https://api.github.com/repos/redsquirrel/browser-solidity/git/commits{/sha}","comments_url":"https://api.github.com/repos/redsquirrel/browser-solidity/comments{/number}","issue_comment_url":"https://api.github.com/repos/redsquirrel/browser-solidity/issues/comments{/number}","contents_url":"https://api.github.com/repos/redsquirrel/browser-solidity/contents/{+path}","compare_url":"https://api.github.com/repos/redsquirrel/browser-solidity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redsquirrel/browser-solidity/merges","archive_url":"https://api.github.com/repos/redsquirrel/browser-solidity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redsquirrel/browser-solidity/downloads","issues_url":"https://api.github.com/repos/redsquirrel/browser-solidity/issues{/number}","pulls_url":"https://api.github.com/repos/redsquirrel/browser-solidity/pulls{/number}","milestones_url":"https://api.github.com/repos/redsquirrel/browser-solidity/milestones{/number}","notifications_url":"https://api.github.com/repos/redsquirrel/browser-solidity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redsquirrel/browser-solidity/labels{/name}","releases_url":"https://api.github.com/repos/redsquirrel/browser-solidity/releases{/id}","deployments_url":"https://api.github.com/repos/redsquirrel/browser-solidity/deployments","created_at":"2016-05-24T17:30:54Z","updated_at":"2016-05-24T17:30:56Z","pushed_at":"2016-06-27T14:14:36Z","git_url":"git://github.com/redsquirrel/browser-solidity.git","ssh_url":"git@github.com:redsquirrel/browser-solidity.git","clone_url":"https://github.com/redsquirrel/browser-solidity.git","svn_url":"https://github.com/redsquirrel/browser-solidity","homepage":null,"size":1838,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ethereum:master","ref":"master","sha":"7a9b16956ce24d0b8ba6b74626ab35fec1487e85","user":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"repo":{"id":59065830,"name":"browser-solidity","full_name":"ethereum/browser-solidity","owner":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ethereum/browser-solidity","description":"Browser-Only Solidity IDE and Runtime Environment","fork":false,"url":"https://api.github.com/repos/ethereum/browser-solidity","forks_url":"https://api.github.com/repos/ethereum/browser-solidity/forks","keys_url":"https://api.github.com/repos/ethereum/browser-solidity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethereum/browser-solidity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethereum/browser-solidity/teams","hooks_url":"https://api.github.com/repos/ethereum/browser-solidity/hooks","issue_events_url":"https://api.github.com/repos/ethereum/browser-solidity/issues/events{/number}","events_url":"https://api.github.com/repos/ethereum/browser-solidity/events","assignees_url":"https://api.github.com/repos/ethereum/browser-solidity/assignees{/user}","branches_url":"https://api.github.com/repos/ethereum/browser-solidity/branches{/branch}","tags_url":"https://api.github.com/repos/ethereum/browser-solidity/tags","blobs_url":"https://api.github.com/repos/ethereum/browser-solidity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethereum/browser-solidity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethereum/browser-solidity/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethereum/browser-solidity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethereum/browser-solidity/statuses/{sha}","languages_url":"https://api.github.com/repos/ethereum/browser-solidity/languages","stargazers_url":"https://api.github.com/repos/ethereum/browser-solidity/stargazers","contributors_url":"https://api.github.com/repos/ethereum/browser-solidity/contributors","subscribers_url":"https://api.github.com/repos/ethereum/browser-solidity/subscribers","subscription_url":"https://api.github.com/repos/ethereum/browser-solidity/subscription","commits_url":"https://api.github.com/repos/ethereum/browser-solidity/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethereum/browser-solidity/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethereum/browser-solidity/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethereum/browser-solidity/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethereum/browser-solidity/contents/{+path}","compare_url":"https://api.github.com/repos/ethereum/browser-solidity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethereum/browser-solidity/merges","archive_url":"https://api.github.com/repos/ethereum/browser-solidity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethereum/browser-solidity/downloads","issues_url":"https://api.github.com/repos/ethereum/browser-solidity/issues{/number}","pulls_url":"https://api.github.com/repos/ethereum/browser-solidity/pulls{/number}","milestones_url":"https://api.github.com/repos/ethereum/browser-solidity/milestones{/number}","notifications_url":"https://api.github.com/repos/ethereum/browser-solidity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethereum/browser-solidity/labels{/name}","releases_url":"https://api.github.com/repos/ethereum/browser-solidity/releases{/id}","deployments_url":"https://api.github.com/repos/ethereum/browser-solidity/deployments","created_at":"2016-05-17T23:17:34Z","updated_at":"2016-06-26T19:06:29Z","pushed_at":"2016-06-27T14:15:56Z","git_url":"git://github.com/ethereum/browser-solidity.git","ssh_url":"git@github.com:ethereum/browser-solidity.git","clone_url":"https://github.com/ethereum/browser-solidity.git","svn_url":"https://github.com/ethereum/browser-solidity","homepage":null,"size":2919,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":13,"mirror_url":null,"open_issues_count":32,"forks":13,"open_issues":32,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ethereum/browser-solidity/pulls/72"},"html":{"href":"https://github.com/ethereum/browser-solidity/pull/72"},"issue":{"href":"https://api.github.com/repos/ethereum/browser-solidity/issues/72"},"comments":{"href":"https://api.github.com/repos/ethereum/browser-solidity/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/ethereum/browser-solidity/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/ethereum/browser-solidity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ethereum/browser-solidity/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/ethereum/browser-solidity/statuses/35e9fee7186c8b67c2df81200a6f55a0d9a19c8c"}}}}
{"actor":{"display_login":"chriseth"}}