{"action":"created","comment":{"url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/comments/29269188","id":29269188,"diff_hunk":"@@ -343,16 +374,16 @@\n     toImageData : function (object) {\n       checkType(object);\n       if (isImageData(object)) { return copyImageData(object); }\n-      return toImageData(object);\n+      return toImageData.apply(null, arguments);\n     },\n \n-    equal : function (a, b, tolerance) {\n+    equal : function (a, b, tolerance, callback) {\n       checkType(a, b);\n       a = toImageData(a);\n       b = toImageData(b);\n       return equal(a, b, tolerance);\n     },\n-    diff : function (a, b) {\n+    diff : function (a, b, callback) {","path":"js/imagediff.js","position":77,"original_position":77,"commit_id":"59979c3328755372dda3f045a36a29990a47a2b0","original_commit_id":"59979c3328755372dda3f045a36a29990a47a2b0","user":{"login":"SyntaxStacks","id":2099863,"avatar_url":"https://avatars.githubusercontent.com/u/2099863?v=3","gravatar_id":"","url":"https://api.github.com/users/SyntaxStacks","html_url":"https://github.com/SyntaxStacks","followers_url":"https://api.github.com/users/SyntaxStacks/followers","following_url":"https://api.github.com/users/SyntaxStacks/following{/other_user}","gists_url":"https://api.github.com/users/SyntaxStacks/gists{/gist_id}","starred_url":"https://api.github.com/users/SyntaxStacks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SyntaxStacks/subscriptions","organizations_url":"https://api.github.com/users/SyntaxStacks/orgs","repos_url":"https://api.github.com/users/SyntaxStacks/repos","events_url":"https://api.github.com/users/SyntaxStacks/events{/privacy}","received_events_url":"https://api.github.com/users/SyntaxStacks/received_events","type":"User","site_admin":false},"body":"I recommend setting the onload function before setting the src to avoid the race condition where the image is loaded before onload is set.","created_at":"2015-04-28T17:55:03Z","updated_at":"2015-04-28T17:55:03Z","html_url":"https://github.com/HumbleSoftware/js-imagediff/pull/26#discussion_r29269188","pull_request_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/comments/29269188"},"html":{"href":"https://github.com/HumbleSoftware/js-imagediff/pull/26#discussion_r29269188"},"pull_request":{"href":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/26","id":13245960,"html_url":"https://github.com/HumbleSoftware/js-imagediff/pull/26","diff_url":"https://github.com/HumbleSoftware/js-imagediff/pull/26.diff","patch_url":"https://github.com/HumbleSoftware/js-imagediff/pull/26.patch","issue_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/issues/26","number":26,"state":"open","locked":false,"title":"Feature/14 base64","user":{"login":"cesutherland","id":348406,"avatar_url":"https://avatars.githubusercontent.com/u/348406?v=3","gravatar_id":"","url":"https://api.github.com/users/cesutherland","html_url":"https://github.com/cesutherland","followers_url":"https://api.github.com/users/cesutherland/followers","following_url":"https://api.github.com/users/cesutherland/following{/other_user}","gists_url":"https://api.github.com/users/cesutherland/gists{/gist_id}","starred_url":"https://api.github.com/users/cesutherland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cesutherland/subscriptions","organizations_url":"https://api.github.com/users/cesutherland/orgs","repos_url":"https://api.github.com/users/cesutherland/repos","events_url":"https://api.github.com/users/cesutherland/events{/privacy}","received_events_url":"https://api.github.com/users/cesutherland/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-03-06T04:03:55Z","updated_at":"2015-04-28T17:55:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/26/commits","review_comments_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/26/comments","review_comment_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/issues/26/comments","statuses_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/statuses/59979c3328755372dda3f045a36a29990a47a2b0","head":{"label":"HumbleSoftware:feature/14-base64","ref":"feature/14-base64","sha":"59979c3328755372dda3f045a36a29990a47a2b0","user":{"login":"HumbleSoftware","id":259986,"avatar_url":"https://avatars.githubusercontent.com/u/259986?v=3","gravatar_id":"","url":"https://api.github.com/users/HumbleSoftware","html_url":"https://github.com/HumbleSoftware","followers_url":"https://api.github.com/users/HumbleSoftware/followers","following_url":"https://api.github.com/users/HumbleSoftware/following{/other_user}","gists_url":"https://api.github.com/users/HumbleSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/HumbleSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HumbleSoftware/subscriptions","organizations_url":"https://api.github.com/users/HumbleSoftware/orgs","repos_url":"https://api.github.com/users/HumbleSoftware/repos","events_url":"https://api.github.com/users/HumbleSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/HumbleSoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":2653980,"name":"js-imagediff","full_name":"HumbleSoftware/js-imagediff","owner":{"login":"HumbleSoftware","id":259986,"avatar_url":"https://avatars.githubusercontent.com/u/259986?v=3","gravatar_id":"","url":"https://api.github.com/users/HumbleSoftware","html_url":"https://github.com/HumbleSoftware","followers_url":"https://api.github.com/users/HumbleSoftware/followers","following_url":"https://api.github.com/users/HumbleSoftware/following{/other_user}","gists_url":"https://api.github.com/users/HumbleSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/HumbleSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HumbleSoftware/subscriptions","organizations_url":"https://api.github.com/users/HumbleSoftware/orgs","repos_url":"https://api.github.com/users/HumbleSoftware/repos","events_url":"https://api.github.com/users/HumbleSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/HumbleSoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HumbleSoftware/js-imagediff","description":"JavaScript / Canvas based image diff utility with Jasmine matchers for testing canvas.","fork":false,"url":"https://api.github.com/repos/HumbleSoftware/js-imagediff","forks_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/forks","keys_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/teams","hooks_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/hooks","issue_events_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/issues/events{/number}","events_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/events","assignees_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/assignees{/user}","branches_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/branches{/branch}","tags_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/tags","blobs_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/git/refs{/sha}","trees_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/statuses/{sha}","languages_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/languages","stargazers_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/stargazers","contributors_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/contributors","subscribers_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/subscribers","subscription_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/subscription","commits_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/commits{/sha}","git_commits_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/git/commits{/sha}","comments_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/comments{/number}","issue_comment_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/issues/comments{/number}","contents_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/contents/{+path}","compare_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/merges","archive_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/downloads","issues_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/issues{/number}","pulls_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls{/number}","milestones_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/milestones{/number}","notifications_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/labels{/name}","releases_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/releases{/id}","created_at":"2011-10-26T21:08:23Z","updated_at":"2015-04-27T20:24:53Z","pushed_at":"2015-04-23T14:53:50Z","git_url":"git://github.com/HumbleSoftware/js-imagediff.git","ssh_url":"git@github.com:HumbleSoftware/js-imagediff.git","clone_url":"https://github.com/HumbleSoftware/js-imagediff.git","svn_url":"https://github.com/HumbleSoftware/js-imagediff","homepage":"http://humblesoftware.github.com/js-imagediff/","size":831,"stargazers_count":455,"watchers_count":455,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":54,"mirror_url":null,"open_issues_count":19,"forks":54,"open_issues":19,"watchers":455,"default_branch":"master"}},"base":{"label":"HumbleSoftware:master","ref":"master","sha":"193227c8b40b74293f3048dbb234ec35b39f833f","user":{"login":"HumbleSoftware","id":259986,"avatar_url":"https://avatars.githubusercontent.com/u/259986?v=3","gravatar_id":"","url":"https://api.github.com/users/HumbleSoftware","html_url":"https://github.com/HumbleSoftware","followers_url":"https://api.github.com/users/HumbleSoftware/followers","following_url":"https://api.github.com/users/HumbleSoftware/following{/other_user}","gists_url":"https://api.github.com/users/HumbleSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/HumbleSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HumbleSoftware/subscriptions","organizations_url":"https://api.github.com/users/HumbleSoftware/orgs","repos_url":"https://api.github.com/users/HumbleSoftware/repos","events_url":"https://api.github.com/users/HumbleSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/HumbleSoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":2653980,"name":"js-imagediff","full_name":"HumbleSoftware/js-imagediff","owner":{"login":"HumbleSoftware","id":259986,"avatar_url":"https://avatars.githubusercontent.com/u/259986?v=3","gravatar_id":"","url":"https://api.github.com/users/HumbleSoftware","html_url":"https://github.com/HumbleSoftware","followers_url":"https://api.github.com/users/HumbleSoftware/followers","following_url":"https://api.github.com/users/HumbleSoftware/following{/other_user}","gists_url":"https://api.github.com/users/HumbleSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/HumbleSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HumbleSoftware/subscriptions","organizations_url":"https://api.github.com/users/HumbleSoftware/orgs","repos_url":"https://api.github.com/users/HumbleSoftware/repos","events_url":"https://api.github.com/users/HumbleSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/HumbleSoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HumbleSoftware/js-imagediff","description":"JavaScript / Canvas based image diff utility with Jasmine matchers for testing canvas.","fork":false,"url":"https://api.github.com/repos/HumbleSoftware/js-imagediff","forks_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/forks","keys_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/teams","hooks_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/hooks","issue_events_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/issues/events{/number}","events_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/events","assignees_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/assignees{/user}","branches_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/branches{/branch}","tags_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/tags","blobs_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/git/refs{/sha}","trees_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/statuses/{sha}","languages_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/languages","stargazers_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/stargazers","contributors_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/contributors","subscribers_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/subscribers","subscription_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/subscription","commits_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/commits{/sha}","git_commits_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/git/commits{/sha}","comments_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/comments{/number}","issue_comment_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/issues/comments{/number}","contents_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/contents/{+path}","compare_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/merges","archive_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/downloads","issues_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/issues{/number}","pulls_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls{/number}","milestones_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/milestones{/number}","notifications_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/labels{/name}","releases_url":"https://api.github.com/repos/HumbleSoftware/js-imagediff/releases{/id}","created_at":"2011-10-26T21:08:23Z","updated_at":"2015-04-27T20:24:53Z","pushed_at":"2015-04-23T14:53:50Z","git_url":"git://github.com/HumbleSoftware/js-imagediff.git","ssh_url":"git@github.com:HumbleSoftware/js-imagediff.git","clone_url":"https://github.com/HumbleSoftware/js-imagediff.git","svn_url":"https://github.com/HumbleSoftware/js-imagediff","homepage":"http://humblesoftware.github.com/js-imagediff/","size":831,"stargazers_count":455,"watchers_count":455,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":54,"mirror_url":null,"open_issues_count":19,"forks":54,"open_issues":19,"watchers":455,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/26"},"html":{"href":"https://github.com/HumbleSoftware/js-imagediff/pull/26"},"issue":{"href":"https://api.github.com/repos/HumbleSoftware/js-imagediff/issues/26"},"comments":{"href":"https://api.github.com/repos/HumbleSoftware/js-imagediff/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HumbleSoftware/js-imagediff/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/HumbleSoftware/js-imagediff/statuses/59979c3328755372dda3f045a36a29990a47a2b0"}}}}