{"action":"created","comment":{"url":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/comments/34451151","id":34451151,"diff_hunk":"@@ -89,9 +87,24 @@ utils = (function() {\n \n         return button;\n     }\n+    function createEl(el, classes) {\n+        var element = document.createElement(el);\n+        if(typeof classes === 'undefined') {\n+            classes = '';\n+        } else if(typeof classes === 'string') {\n+            classes = classes.split(' ');\n+        }\n+        if(Array.isArray(classes)) {\n+            classes.map(function(classname){\n+                $(element).addClass(classname);\n+            });\n+        }\n+        return element;\n+    }\n \n     return {\n         'isArray': isArray,","path":"js/utilities.js","position":31,"original_position":31,"commit_id":"49baf5250f5c3c7ac8e6d55db89cc299fdc0d7ed","original_commit_id":"49baf5250f5c3c7ac8e6d55db89cc299fdc0d7ed","user":{"login":"designr","id":2346768,"avatar_url":"https://avatars.githubusercontent.com/u/2346768?v=3","gravatar_id":"","url":"https://api.github.com/users/designr","html_url":"https://github.com/designr","followers_url":"https://api.github.com/users/designr/followers","following_url":"https://api.github.com/users/designr/following{/other_user}","gists_url":"https://api.github.com/users/designr/gists{/gist_id}","starred_url":"https://api.github.com/users/designr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/designr/subscriptions","organizations_url":"https://api.github.com/users/designr/orgs","repos_url":"https://api.github.com/users/designr/repos","events_url":"https://api.github.com/users/designr/events{/privacy}","received_events_url":"https://api.github.com/users/designr/received_events","type":"User","site_admin":false},"body":"Do you want to explore using the built-in `Array.isArray()` function instead ?","created_at":"2015-07-13T10:42:09Z","updated_at":"2015-07-13T10:42:09Z","html_url":"https://github.com/pooyaX14/sketchpad/pull/1#discussion_r34451151","pull_request_url":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/comments/34451151"},"html":{"href":"https://github.com/pooyaX14/sketchpad/pull/1#discussion_r34451151"},"pull_request":{"href":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/1","id":39797664,"html_url":"https://github.com/pooyaX14/sketchpad/pull/1","diff_url":"https://github.com/pooyaX14/sketchpad/pull/1.diff","patch_url":"https://github.com/pooyaX14/sketchpad/pull/1.patch","issue_url":"https://api.github.com/repos/pooyaX14/sketchpad/issues/1","number":1,"state":"open","locked":false,"title":"Refactored the version ","user":{"login":"pooyaX14","id":4417175,"avatar_url":"https://avatars.githubusercontent.com/u/4417175?v=3","gravatar_id":"","url":"https://api.github.com/users/pooyaX14","html_url":"https://github.com/pooyaX14","followers_url":"https://api.github.com/users/pooyaX14/followers","following_url":"https://api.github.com/users/pooyaX14/following{/other_user}","gists_url":"https://api.github.com/users/pooyaX14/gists{/gist_id}","starred_url":"https://api.github.com/users/pooyaX14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pooyaX14/subscriptions","organizations_url":"https://api.github.com/users/pooyaX14/orgs","repos_url":"https://api.github.com/users/pooyaX14/repos","events_url":"https://api.github.com/users/pooyaX14/events{/privacy}","received_events_url":"https://api.github.com/users/pooyaX14/received_events","type":"User","site_admin":false},"body":"1. Better layout for the side bar. \r\n1. Removed unnecessary code from the  css file.\r\n1. Added two input fields on the side bar as well as new Create button. \r\n1. Set the default values for the input fields. \r\n1. Added a 5-column-grid for better layout.","created_at":"2015-07-13T10:26:02Z","updated_at":"2015-07-13T10:42:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f3620756961c056343a1b766c3a6b0f4cd34dea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/1/commits","review_comments_url":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/1/comments","review_comment_url":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pooyaX14/sketchpad/issues/1/comments","statuses_url":"https://api.github.com/repos/pooyaX14/sketchpad/statuses/49baf5250f5c3c7ac8e6d55db89cc299fdc0d7ed","head":{"label":"pooyaX14:refactor","ref":"refactor","sha":"49baf5250f5c3c7ac8e6d55db89cc299fdc0d7ed","user":{"login":"pooyaX14","id":4417175,"avatar_url":"https://avatars.githubusercontent.com/u/4417175?v=3","gravatar_id":"","url":"https://api.github.com/users/pooyaX14","html_url":"https://github.com/pooyaX14","followers_url":"https://api.github.com/users/pooyaX14/followers","following_url":"https://api.github.com/users/pooyaX14/following{/other_user}","gists_url":"https://api.github.com/users/pooyaX14/gists{/gist_id}","starred_url":"https://api.github.com/users/pooyaX14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pooyaX14/subscriptions","organizations_url":"https://api.github.com/users/pooyaX14/orgs","repos_url":"https://api.github.com/users/pooyaX14/repos","events_url":"https://api.github.com/users/pooyaX14/events{/privacy}","received_events_url":"https://api.github.com/users/pooyaX14/received_events","type":"User","site_admin":false},"repo":{"id":38641279,"name":"sketchpad","full_name":"pooyaX14/sketchpad","owner":{"login":"pooyaX14","id":4417175,"avatar_url":"https://avatars.githubusercontent.com/u/4417175?v=3","gravatar_id":"","url":"https://api.github.com/users/pooyaX14","html_url":"https://github.com/pooyaX14","followers_url":"https://api.github.com/users/pooyaX14/followers","following_url":"https://api.github.com/users/pooyaX14/following{/other_user}","gists_url":"https://api.github.com/users/pooyaX14/gists{/gist_id}","starred_url":"https://api.github.com/users/pooyaX14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pooyaX14/subscriptions","organizations_url":"https://api.github.com/users/pooyaX14/orgs","repos_url":"https://api.github.com/users/pooyaX14/repos","events_url":"https://api.github.com/users/pooyaX14/events{/privacy}","received_events_url":"https://api.github.com/users/pooyaX14/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pooyaX14/sketchpad","description":"grid-based sketchpad using jquery/javascript -- an odin project assignment.","fork":false,"url":"https://api.github.com/repos/pooyaX14/sketchpad","forks_url":"https://api.github.com/repos/pooyaX14/sketchpad/forks","keys_url":"https://api.github.com/repos/pooyaX14/sketchpad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pooyaX14/sketchpad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pooyaX14/sketchpad/teams","hooks_url":"https://api.github.com/repos/pooyaX14/sketchpad/hooks","issue_events_url":"https://api.github.com/repos/pooyaX14/sketchpad/issues/events{/number}","events_url":"https://api.github.com/repos/pooyaX14/sketchpad/events","assignees_url":"https://api.github.com/repos/pooyaX14/sketchpad/assignees{/user}","branches_url":"https://api.github.com/repos/pooyaX14/sketchpad/branches{/branch}","tags_url":"https://api.github.com/repos/pooyaX14/sketchpad/tags","blobs_url":"https://api.github.com/repos/pooyaX14/sketchpad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pooyaX14/sketchpad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pooyaX14/sketchpad/git/refs{/sha}","trees_url":"https://api.github.com/repos/pooyaX14/sketchpad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pooyaX14/sketchpad/statuses/{sha}","languages_url":"https://api.github.com/repos/pooyaX14/sketchpad/languages","stargazers_url":"https://api.github.com/repos/pooyaX14/sketchpad/stargazers","contributors_url":"https://api.github.com/repos/pooyaX14/sketchpad/contributors","subscribers_url":"https://api.github.com/repos/pooyaX14/sketchpad/subscribers","subscription_url":"https://api.github.com/repos/pooyaX14/sketchpad/subscription","commits_url":"https://api.github.com/repos/pooyaX14/sketchpad/commits{/sha}","git_commits_url":"https://api.github.com/repos/pooyaX14/sketchpad/git/commits{/sha}","comments_url":"https://api.github.com/repos/pooyaX14/sketchpad/comments{/number}","issue_comment_url":"https://api.github.com/repos/pooyaX14/sketchpad/issues/comments{/number}","contents_url":"https://api.github.com/repos/pooyaX14/sketchpad/contents/{+path}","compare_url":"https://api.github.com/repos/pooyaX14/sketchpad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pooyaX14/sketchpad/merges","archive_url":"https://api.github.com/repos/pooyaX14/sketchpad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pooyaX14/sketchpad/downloads","issues_url":"https://api.github.com/repos/pooyaX14/sketchpad/issues{/number}","pulls_url":"https://api.github.com/repos/pooyaX14/sketchpad/pulls{/number}","milestones_url":"https://api.github.com/repos/pooyaX14/sketchpad/milestones{/number}","notifications_url":"https://api.github.com/repos/pooyaX14/sketchpad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pooyaX14/sketchpad/labels{/name}","releases_url":"https://api.github.com/repos/pooyaX14/sketchpad/releases{/id}","created_at":"2015-07-06T19:31:03Z","updated_at":"2015-07-07T13:30:33Z","pushed_at":"2015-07-13T10:26:03Z","git_url":"git://github.com/pooyaX14/sketchpad.git","ssh_url":"git@github.com:pooyaX14/sketchpad.git","clone_url":"https://github.com/pooyaX14/sketchpad.git","svn_url":"https://github.com/pooyaX14/sketchpad","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"pooyaX14:master","ref":"master","sha":"8a09caa53df062cfe2b6980b56a2a0628d451f70","user":{"login":"pooyaX14","id":4417175,"avatar_url":"https://avatars.githubusercontent.com/u/4417175?v=3","gravatar_id":"","url":"https://api.github.com/users/pooyaX14","html_url":"https://github.com/pooyaX14","followers_url":"https://api.github.com/users/pooyaX14/followers","following_url":"https://api.github.com/users/pooyaX14/following{/other_user}","gists_url":"https://api.github.com/users/pooyaX14/gists{/gist_id}","starred_url":"https://api.github.com/users/pooyaX14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pooyaX14/subscriptions","organizations_url":"https://api.github.com/users/pooyaX14/orgs","repos_url":"https://api.github.com/users/pooyaX14/repos","events_url":"https://api.github.com/users/pooyaX14/events{/privacy}","received_events_url":"https://api.github.com/users/pooyaX14/received_events","type":"User","site_admin":false},"repo":{"id":38641279,"name":"sketchpad","full_name":"pooyaX14/sketchpad","owner":{"login":"pooyaX14","id":4417175,"avatar_url":"https://avatars.githubusercontent.com/u/4417175?v=3","gravatar_id":"","url":"https://api.github.com/users/pooyaX14","html_url":"https://github.com/pooyaX14","followers_url":"https://api.github.com/users/pooyaX14/followers","following_url":"https://api.github.com/users/pooyaX14/following{/other_user}","gists_url":"https://api.github.com/users/pooyaX14/gists{/gist_id}","starred_url":"https://api.github.com/users/pooyaX14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pooyaX14/subscriptions","organizations_url":"https://api.github.com/users/pooyaX14/orgs","repos_url":"https://api.github.com/users/pooyaX14/repos","events_url":"https://api.github.com/users/pooyaX14/events{/privacy}","received_events_url":"https://api.github.com/users/pooyaX14/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pooyaX14/sketchpad","description":"grid-based sketchpad using jquery/javascript -- an odin project assignment.","fork":false,"url":"https://api.github.com/repos/pooyaX14/sketchpad","forks_url":"https://api.github.com/repos/pooyaX14/sketchpad/forks","keys_url":"https://api.github.com/repos/pooyaX14/sketchpad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pooyaX14/sketchpad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pooyaX14/sketchpad/teams","hooks_url":"https://api.github.com/repos/pooyaX14/sketchpad/hooks","issue_events_url":"https://api.github.com/repos/pooyaX14/sketchpad/issues/events{/number}","events_url":"https://api.github.com/repos/pooyaX14/sketchpad/events","assignees_url":"https://api.github.com/repos/pooyaX14/sketchpad/assignees{/user}","branches_url":"https://api.github.com/repos/pooyaX14/sketchpad/branches{/branch}","tags_url":"https://api.github.com/repos/pooyaX14/sketchpad/tags","blobs_url":"https://api.github.com/repos/pooyaX14/sketchpad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pooyaX14/sketchpad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pooyaX14/sketchpad/git/refs{/sha}","trees_url":"https://api.github.com/repos/pooyaX14/sketchpad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pooyaX14/sketchpad/statuses/{sha}","languages_url":"https://api.github.com/repos/pooyaX14/sketchpad/languages","stargazers_url":"https://api.github.com/repos/pooyaX14/sketchpad/stargazers","contributors_url":"https://api.github.com/repos/pooyaX14/sketchpad/contributors","subscribers_url":"https://api.github.com/repos/pooyaX14/sketchpad/subscribers","subscription_url":"https://api.github.com/repos/pooyaX14/sketchpad/subscription","commits_url":"https://api.github.com/repos/pooyaX14/sketchpad/commits{/sha}","git_commits_url":"https://api.github.com/repos/pooyaX14/sketchpad/git/commits{/sha}","comments_url":"https://api.github.com/repos/pooyaX14/sketchpad/comments{/number}","issue_comment_url":"https://api.github.com/repos/pooyaX14/sketchpad/issues/comments{/number}","contents_url":"https://api.github.com/repos/pooyaX14/sketchpad/contents/{+path}","compare_url":"https://api.github.com/repos/pooyaX14/sketchpad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pooyaX14/sketchpad/merges","archive_url":"https://api.github.com/repos/pooyaX14/sketchpad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pooyaX14/sketchpad/downloads","issues_url":"https://api.github.com/repos/pooyaX14/sketchpad/issues{/number}","pulls_url":"https://api.github.com/repos/pooyaX14/sketchpad/pulls{/number}","milestones_url":"https://api.github.com/repos/pooyaX14/sketchpad/milestones{/number}","notifications_url":"https://api.github.com/repos/pooyaX14/sketchpad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pooyaX14/sketchpad/labels{/name}","releases_url":"https://api.github.com/repos/pooyaX14/sketchpad/releases{/id}","created_at":"2015-07-06T19:31:03Z","updated_at":"2015-07-07T13:30:33Z","pushed_at":"2015-07-13T10:26:03Z","git_url":"git://github.com/pooyaX14/sketchpad.git","ssh_url":"git@github.com:pooyaX14/sketchpad.git","clone_url":"https://github.com/pooyaX14/sketchpad.git","svn_url":"https://github.com/pooyaX14/sketchpad","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/1"},"html":{"href":"https://github.com/pooyaX14/sketchpad/pull/1"},"issue":{"href":"https://api.github.com/repos/pooyaX14/sketchpad/issues/1"},"comments":{"href":"https://api.github.com/repos/pooyaX14/sketchpad/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pooyaX14/sketchpad/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/pooyaX14/sketchpad/statuses/49baf5250f5c3c7ac8e6d55db89cc299fdc0d7ed"}}}}