{"action":"created","comment":{"url":"https://api.github.com/repos/andela/hyuga-cfh/pulls/comments/87852425","pull_request_review_id":8446811,"id":87852425,"diff_hunk":"@@ -0,0 +1,212 @@\n+'use strict';\n+    \n+function cancelEvent (event) {\n+  event = event || window.event;\n+  if (event) {\n+    event = event.originalEvent || event;\n+\n+    if (event.stopPropagation) event.stopPropagation();\n+    if (event.preventDefault) event.preventDefault();\n+  }\n+\n+  return false;\n+}\n+\n+function getGuid() {\n+    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n+        var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);\n+        return v.toString(16);\n+    });\n+}\n+\n+//ConfigStorage\n+(function(window)\n+{\n+    var keyPrefix = '';\n+    var noPrefix = false;\n+    var cache = {};\n+    var useCs = !!(window.chrome && chrome.storage && chrome.storage.local);\n+    var useLs = !useCs && !!window.localStorage;\n+\n+    function storageSetPrefix(newPrefix)\n+    {\n+        keyPrefix = newPrefix;\n+    }\n+\n+    function storageSetNoPrefix()\n+    {\n+        noPrefix = true;\n+    }\n+\n+    function storageGetPrefix()\n+    {\n+        if (noPrefix)\n+        {\n+            noPrefix = false;\n+            return '';\n+        }\n+        return keyPrefix;\n+    }\n+\n+    function storageGetValue()\n+    {\n+        var keys = Array.prototype.slice.call(arguments),\n+            callback = keys.pop(),\n+            result = [],\n+            single = keys.length == 1,\n+            value,\n+            allFound = true,\n+            prefix = storageGetPrefix(),\n+            i, key;\n+\n+        for (i = 0; i < keys.length; i++)\n+        {\n+            key = keys[i] = prefix + keys[i];\n+            if (key.substr(0, 3) != 'xt_' && cache[key] !== undefined)\n+            {\n+                result.push(cache[key]);\n+            }\n+            else if (useLs)\n+            {\n+                try\n+                {\n+                    value = localStorage.getItem(key);\n+                }\n+                catch (e)\n+                {\n+                    useLs = false;\n+                }\n+                try\n+                {\n+                    value = (value === undefined || value === null) ? false : JSON.parse(value);\n+                }\n+                catch (e)\n+                {\n+                    value = false;\n+                }\n+                result.push(cache[key] = value);\n+            }\n+            else if (!useCs)\n+            {\n+                result.push(cache[key] = false);\n+            }\n+            else\n+            {\n+                allFound = false;\n+            }\n+        }\n+\n+        if (allFound)\n+        {\n+            return callback(single ? result[0] : result);\n+        }\n+\n+        chrome.storage.local.get(keys, function(resultObj)\n+        {\n+            var value;\n+            result = [];\n+            for (i = 0; i < keys.length; i++)\n+            {\n+                key = keys[i];\n+                value = resultObj[key];\n+                value = value === undefined || value === null ? false : JSON.parse(value);\n+                result.push(cache[key] = value);\n+            }\n+\n+            callback(single ? result[0] : result);\n+        });\n+    };","path":"public/views/lib/emoji-picker/js/util.js","position":118,"original_position":118,"commit_id":"ea72e4d6b5ddcf399aa75d2201d14658d9c08051","original_commit_id":"ea72e4d6b5ddcf399aa75d2201d14658d9c08051","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Unnecessary semicolon.","created_at":"2016-11-14T17:41:08Z","updated_at":"2016-11-14T17:41:08Z","html_url":"https://github.com/andela/hyuga-cfh/pull/44#discussion_r87852425","pull_request_url":"https://api.github.com/repos/andela/hyuga-cfh/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/andela/hyuga-cfh/pulls/comments/87852425"},"html":{"href":"https://github.com/andela/hyuga-cfh/pull/44#discussion_r87852425"},"pull_request":{"href":"https://api.github.com/repos/andela/hyuga-cfh/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/andela/hyuga-cfh/pulls/44","id":93612666,"html_url":"https://github.com/andela/hyuga-cfh/pull/44","diff_url":"https://github.com/andela/hyuga-cfh/pull/44.diff","patch_url":"https://github.com/andela/hyuga-cfh/pull/44.patch","issue_url":"https://api.github.com/repos/andela/hyuga-cfh/issues/44","number":44,"state":"open","locked":false,"title":"131356243 Chats-Emoji","user":{"login":"andela-oagunbiade","id":21035422,"avatar_url":"https://avatars.githubusercontent.com/u/21035422?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-oagunbiade","html_url":"https://github.com/andela-oagunbiade","followers_url":"https://api.github.com/users/andela-oagunbiade/followers","following_url":"https://api.github.com/users/andela-oagunbiade/following{/other_user}","gists_url":"https://api.github.com/users/andela-oagunbiade/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-oagunbiade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-oagunbiade/subscriptions","organizations_url":"https://api.github.com/users/andela-oagunbiade/orgs","repos_url":"https://api.github.com/users/andela-oagunbiade/repos","events_url":"https://api.github.com/users/andela-oagunbiade/events{/privacy}","received_events_url":"https://api.github.com/users/andela-oagunbiade/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nImplement an Emoji feature to be used in the chat Application \r\n#### Description of Task to be completed?\r\nA User is able to send and receive chats using emojis.\r\n#### How should this be manually tested?\r\nNA\r\n#### Any background context you want to provide?\r\nTwo Emoji Libraries have been used for implementation\r\n- Emoji-picker : for making an emoji selection which is then passed onto the database\r\n- Emojione: for the rendering of the emoji shortcodes saved on the database\r\n#### What are the relevant pivotal tracker stories?\r\n#131356243 Users should be able to use emojis in the chat window.\r\n#### Screenshots (if appropriate)\r\n![image](https://cloud.githubusercontent.com/assets/21035422/20275672/c01d80c0-aa99-11e6-8a4d-29b586832f46.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/21035422/20275681/cd2ce5b2-aa99-11e6-8e8e-deba2876e61d.png)\r\n\r\n\r\n#### Questions:\r\nNA","created_at":"2016-11-14T17:40:57Z","updated_at":"2016-11-14T17:41:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/hyuga-cfh/pulls/44/commits","review_comments_url":"https://api.github.com/repos/andela/hyuga-cfh/pulls/44/comments","review_comment_url":"https://api.github.com/repos/andela/hyuga-cfh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/hyuga-cfh/issues/44/comments","statuses_url":"https://api.github.com/repos/andela/hyuga-cfh/statuses/ea72e4d6b5ddcf399aa75d2201d14658d9c08051","head":{"label":"andela:feature/131356243/chats-emoji","ref":"feature/131356243/chats-emoji","sha":"ea72e4d6b5ddcf399aa75d2201d14658d9c08051","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":69980261,"name":"hyuga-cfh","full_name":"andela/hyuga-cfh","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/hyuga-cfh","description":null,"fork":false,"url":"https://api.github.com/repos/andela/hyuga-cfh","forks_url":"https://api.github.com/repos/andela/hyuga-cfh/forks","keys_url":"https://api.github.com/repos/andela/hyuga-cfh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/hyuga-cfh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/hyuga-cfh/teams","hooks_url":"https://api.github.com/repos/andela/hyuga-cfh/hooks","issue_events_url":"https://api.github.com/repos/andela/hyuga-cfh/issues/events{/number}","events_url":"https://api.github.com/repos/andela/hyuga-cfh/events","assignees_url":"https://api.github.com/repos/andela/hyuga-cfh/assignees{/user}","branches_url":"https://api.github.com/repos/andela/hyuga-cfh/branches{/branch}","tags_url":"https://api.github.com/repos/andela/hyuga-cfh/tags","blobs_url":"https://api.github.com/repos/andela/hyuga-cfh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/hyuga-cfh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/hyuga-cfh/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/hyuga-cfh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/hyuga-cfh/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/hyuga-cfh/languages","stargazers_url":"https://api.github.com/repos/andela/hyuga-cfh/stargazers","contributors_url":"https://api.github.com/repos/andela/hyuga-cfh/contributors","subscribers_url":"https://api.github.com/repos/andela/hyuga-cfh/subscribers","subscription_url":"https://api.github.com/repos/andela/hyuga-cfh/subscription","commits_url":"https://api.github.com/repos/andela/hyuga-cfh/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/hyuga-cfh/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/hyuga-cfh/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/hyuga-cfh/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/hyuga-cfh/contents/{+path}","compare_url":"https://api.github.com/repos/andela/hyuga-cfh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/hyuga-cfh/merges","archive_url":"https://api.github.com/repos/andela/hyuga-cfh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/hyuga-cfh/downloads","issues_url":"https://api.github.com/repos/andela/hyuga-cfh/issues{/number}","pulls_url":"https://api.github.com/repos/andela/hyuga-cfh/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/hyuga-cfh/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/hyuga-cfh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/hyuga-cfh/labels{/name}","releases_url":"https://api.github.com/repos/andela/hyuga-cfh/releases{/id}","deployments_url":"https://api.github.com/repos/andela/hyuga-cfh/deployments","created_at":"2016-10-04T15:44:51Z","updated_at":"2016-10-11T10:23:17Z","pushed_at":"2016-11-14T17:40:57Z","git_url":"git://github.com/andela/hyuga-cfh.git","ssh_url":"git@github.com:andela/hyuga-cfh.git","clone_url":"https://github.com/andela/hyuga-cfh.git","svn_url":"https://github.com/andela/hyuga-cfh","homepage":null,"size":15464,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"andela:staging","ref":"staging","sha":"b86559a4a2a460110134eb27b13eec2eb5c04fbd","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":69980261,"name":"hyuga-cfh","full_name":"andela/hyuga-cfh","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars.githubusercontent.com/u/4100206?v=3","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/hyuga-cfh","description":null,"fork":false,"url":"https://api.github.com/repos/andela/hyuga-cfh","forks_url":"https://api.github.com/repos/andela/hyuga-cfh/forks","keys_url":"https://api.github.com/repos/andela/hyuga-cfh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/hyuga-cfh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/hyuga-cfh/teams","hooks_url":"https://api.github.com/repos/andela/hyuga-cfh/hooks","issue_events_url":"https://api.github.com/repos/andela/hyuga-cfh/issues/events{/number}","events_url":"https://api.github.com/repos/andela/hyuga-cfh/events","assignees_url":"https://api.github.com/repos/andela/hyuga-cfh/assignees{/user}","branches_url":"https://api.github.com/repos/andela/hyuga-cfh/branches{/branch}","tags_url":"https://api.github.com/repos/andela/hyuga-cfh/tags","blobs_url":"https://api.github.com/repos/andela/hyuga-cfh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/hyuga-cfh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/hyuga-cfh/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/hyuga-cfh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/hyuga-cfh/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/hyuga-cfh/languages","stargazers_url":"https://api.github.com/repos/andela/hyuga-cfh/stargazers","contributors_url":"https://api.github.com/repos/andela/hyuga-cfh/contributors","subscribers_url":"https://api.github.com/repos/andela/hyuga-cfh/subscribers","subscription_url":"https://api.github.com/repos/andela/hyuga-cfh/subscription","commits_url":"https://api.github.com/repos/andela/hyuga-cfh/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/hyuga-cfh/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/hyuga-cfh/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/hyuga-cfh/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/hyuga-cfh/contents/{+path}","compare_url":"https://api.github.com/repos/andela/hyuga-cfh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/hyuga-cfh/merges","archive_url":"https://api.github.com/repos/andela/hyuga-cfh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/hyuga-cfh/downloads","issues_url":"https://api.github.com/repos/andela/hyuga-cfh/issues{/number}","pulls_url":"https://api.github.com/repos/andela/hyuga-cfh/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/hyuga-cfh/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/hyuga-cfh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/hyuga-cfh/labels{/name}","releases_url":"https://api.github.com/repos/andela/hyuga-cfh/releases{/id}","deployments_url":"https://api.github.com/repos/andela/hyuga-cfh/deployments","created_at":"2016-10-04T15:44:51Z","updated_at":"2016-10-11T10:23:17Z","pushed_at":"2016-11-14T17:40:57Z","git_url":"git://github.com/andela/hyuga-cfh.git","ssh_url":"git@github.com:andela/hyuga-cfh.git","clone_url":"https://github.com/andela/hyuga-cfh.git","svn_url":"https://github.com/andela/hyuga-cfh","homepage":null,"size":15464,"stargazers_count":0,"watchers_count":0,"language":"CSS","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/andela/hyuga-cfh/pulls/44"},"html":{"href":"https://github.com/andela/hyuga-cfh/pull/44"},"issue":{"href":"https://api.github.com/repos/andela/hyuga-cfh/issues/44"},"comments":{"href":"https://api.github.com/repos/andela/hyuga-cfh/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/hyuga-cfh/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/hyuga-cfh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/hyuga-cfh/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/andela/hyuga-cfh/statuses/ea72e4d6b5ddcf399aa75d2201d14658d9c08051"}}}}
{"actor":{"display_login":"houndci-bot"}}