{"action":"created","comment":{"url":"https://api.github.com/repos/BBC-News/Imager.js/pulls/comments/22657977","id":22657977,"diff_hunk":"@@ -106,7 +107,7 @@\n         }\n \n         this.viewportHeight   = doc.documentElement.clientHeight;\n-        this.selector         = opts.selector || '.delayed-image-load';\n+        this.selector         = !elements ? (opts.selector || '.delayed-image-load') : null;","path":"Imager.js","position":91,"original_position":80,"commit_id":"d7618ce3491d7d3c8476ee64fb2f560027e00086","original_commit_id":"88be07877a727e35386dafdbf7d1a7988e5509db","user":{"login":"oncletom","id":138627,"avatar_url":"https://avatars.githubusercontent.com/u/138627?v=3","gravatar_id":"","url":"https://api.github.com/users/oncletom","html_url":"https://github.com/oncletom","followers_url":"https://api.github.com/users/oncletom/followers","following_url":"https://api.github.com/users/oncletom/following{/other_user}","gists_url":"https://api.github.com/users/oncletom/gists{/gist_id}","starred_url":"https://api.github.com/users/oncletom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oncletom/subscriptions","organizations_url":"https://api.github.com/users/oncletom/orgs","repos_url":"https://api.github.com/users/oncletom/repos","events_url":"https://api.github.com/users/oncletom/events{/privacy}","received_events_url":"https://api.github.com/users/oncletom/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-01-08T15:33:07Z","updated_at":"2015-01-08T15:33:07Z","html_url":"https://github.com/BBC-News/Imager.js/pull/118#discussion_r22657977","pull_request_url":"https://api.github.com/repos/BBC-News/Imager.js/pulls/118","_links":{"self":{"href":"https://api.github.com/repos/BBC-News/Imager.js/pulls/comments/22657977"},"html":{"href":"https://github.com/BBC-News/Imager.js/pull/118#discussion_r22657977"},"pull_request":{"href":"https://api.github.com/repos/BBC-News/Imager.js/pulls/118"}}},"pull_request":{"url":"https://api.github.com/repos/BBC-News/Imager.js/pulls/118","id":25826273,"html_url":"https://github.com/BBC-News/Imager.js/pull/118","diff_url":"https://github.com/BBC-News/Imager.js/pull/118.diff","patch_url":"https://github.com/BBC-News/Imager.js/pull/118.patch","issue_url":"https://api.github.com/repos/BBC-News/Imager.js/issues/118","number":118,"state":"open","locked":false,"title":"Ability to add elements to Imager after initialisation","user":{"login":"WebSeed","id":357579,"avatar_url":"https://avatars.githubusercontent.com/u/357579?v=3","gravatar_id":"","url":"https://api.github.com/users/WebSeed","html_url":"https://github.com/WebSeed","followers_url":"https://api.github.com/users/WebSeed/followers","following_url":"https://api.github.com/users/WebSeed/following{/other_user}","gists_url":"https://api.github.com/users/WebSeed/gists{/gist_id}","starred_url":"https://api.github.com/users/WebSeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebSeed/subscriptions","organizations_url":"https://api.github.com/users/WebSeed/orgs","repos_url":"https://api.github.com/users/WebSeed/repos","events_url":"https://api.github.com/users/WebSeed/events{/privacy}","received_events_url":"https://api.github.com/users/WebSeed/received_events","type":"User","site_admin":false},"body":"This is very similar to (and inspired by) https://github.com/BBC-News/Imager.js/pull/92, with a slight change in the interface and the addition of a few tests.\r\n\r\ncloses #92\r\ncloses #110\r\nrefs #24 ","created_at":"2014-12-10T14:41:21Z","updated_at":"2015-01-08T15:33:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cee98522c5a55e74c80a0c2e340ba463a6946e67","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BBC-News/Imager.js/pulls/118/commits","review_comments_url":"https://api.github.com/repos/BBC-News/Imager.js/pulls/118/comments","review_comment_url":"https://api.github.com/repos/BBC-News/Imager.js/pulls/comments/{number}","comments_url":"https://api.github.com/repos/BBC-News/Imager.js/issues/118/comments","statuses_url":"https://api.github.com/repos/BBC-News/Imager.js/statuses/d7618ce3491d7d3c8476ee64fb2f560027e00086","head":{"label":"WebSeed:master","ref":"master","sha":"d7618ce3491d7d3c8476ee64fb2f560027e00086","user":{"login":"WebSeed","id":357579,"avatar_url":"https://avatars.githubusercontent.com/u/357579?v=3","gravatar_id":"","url":"https://api.github.com/users/WebSeed","html_url":"https://github.com/WebSeed","followers_url":"https://api.github.com/users/WebSeed/followers","following_url":"https://api.github.com/users/WebSeed/following{/other_user}","gists_url":"https://api.github.com/users/WebSeed/gists{/gist_id}","starred_url":"https://api.github.com/users/WebSeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebSeed/subscriptions","organizations_url":"https://api.github.com/users/WebSeed/orgs","repos_url":"https://api.github.com/users/WebSeed/repos","events_url":"https://api.github.com/users/WebSeed/events{/privacy}","received_events_url":"https://api.github.com/users/WebSeed/received_events","type":"User","site_admin":false},"repo":{"id":27815098,"name":"Imager.js","full_name":"WebSeed/Imager.js","owner":{"login":"WebSeed","id":357579,"avatar_url":"https://avatars.githubusercontent.com/u/357579?v=3","gravatar_id":"","url":"https://api.github.com/users/WebSeed","html_url":"https://github.com/WebSeed","followers_url":"https://api.github.com/users/WebSeed/followers","following_url":"https://api.github.com/users/WebSeed/following{/other_user}","gists_url":"https://api.github.com/users/WebSeed/gists{/gist_id}","starred_url":"https://api.github.com/users/WebSeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebSeed/subscriptions","organizations_url":"https://api.github.com/users/WebSeed/orgs","repos_url":"https://api.github.com/users/WebSeed/repos","events_url":"https://api.github.com/users/WebSeed/events{/privacy}","received_events_url":"https://api.github.com/users/WebSeed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WebSeed/Imager.js","description":"Responsive images while we wait for srcset to finish cooking","fork":true,"url":"https://api.github.com/repos/WebSeed/Imager.js","forks_url":"https://api.github.com/repos/WebSeed/Imager.js/forks","keys_url":"https://api.github.com/repos/WebSeed/Imager.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WebSeed/Imager.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WebSeed/Imager.js/teams","hooks_url":"https://api.github.com/repos/WebSeed/Imager.js/hooks","issue_events_url":"https://api.github.com/repos/WebSeed/Imager.js/issues/events{/number}","events_url":"https://api.github.com/repos/WebSeed/Imager.js/events","assignees_url":"https://api.github.com/repos/WebSeed/Imager.js/assignees{/user}","branches_url":"https://api.github.com/repos/WebSeed/Imager.js/branches{/branch}","tags_url":"https://api.github.com/repos/WebSeed/Imager.js/tags","blobs_url":"https://api.github.com/repos/WebSeed/Imager.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WebSeed/Imager.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WebSeed/Imager.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/WebSeed/Imager.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WebSeed/Imager.js/statuses/{sha}","languages_url":"https://api.github.com/repos/WebSeed/Imager.js/languages","stargazers_url":"https://api.github.com/repos/WebSeed/Imager.js/stargazers","contributors_url":"https://api.github.com/repos/WebSeed/Imager.js/contributors","subscribers_url":"https://api.github.com/repos/WebSeed/Imager.js/subscribers","subscription_url":"https://api.github.com/repos/WebSeed/Imager.js/subscription","commits_url":"https://api.github.com/repos/WebSeed/Imager.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/WebSeed/Imager.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/WebSeed/Imager.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/WebSeed/Imager.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/WebSeed/Imager.js/contents/{+path}","compare_url":"https://api.github.com/repos/WebSeed/Imager.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WebSeed/Imager.js/merges","archive_url":"https://api.github.com/repos/WebSeed/Imager.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WebSeed/Imager.js/downloads","issues_url":"https://api.github.com/repos/WebSeed/Imager.js/issues{/number}","pulls_url":"https://api.github.com/repos/WebSeed/Imager.js/pulls{/number}","milestones_url":"https://api.github.com/repos/WebSeed/Imager.js/milestones{/number}","notifications_url":"https://api.github.com/repos/WebSeed/Imager.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WebSeed/Imager.js/labels{/name}","releases_url":"https://api.github.com/repos/WebSeed/Imager.js/releases{/id}","created_at":"2014-12-10T10:42:48Z","updated_at":"2014-12-19T17:48:45Z","pushed_at":"2014-12-19T17:48:45Z","git_url":"git://github.com/WebSeed/Imager.js.git","ssh_url":"git@github.com:WebSeed/Imager.js.git","clone_url":"https://github.com/WebSeed/Imager.js.git","svn_url":"https://github.com/WebSeed/Imager.js","homepage":null,"size":6582,"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":"BBC-News:master","ref":"master","sha":"dad648722649fcb83a747d96bfa3d2427e211b29","user":{"login":"BBC-News","id":1401475,"avatar_url":"https://avatars.githubusercontent.com/u/1401475?v=3","gravatar_id":"","url":"https://api.github.com/users/BBC-News","html_url":"https://github.com/BBC-News","followers_url":"https://api.github.com/users/BBC-News/followers","following_url":"https://api.github.com/users/BBC-News/following{/other_user}","gists_url":"https://api.github.com/users/BBC-News/gists{/gist_id}","starred_url":"https://api.github.com/users/BBC-News/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBC-News/subscriptions","organizations_url":"https://api.github.com/users/BBC-News/orgs","repos_url":"https://api.github.com/users/BBC-News/repos","events_url":"https://api.github.com/users/BBC-News/events{/privacy}","received_events_url":"https://api.github.com/users/BBC-News/received_events","type":"Organization","site_admin":false},"repo":{"id":11944782,"name":"Imager.js","full_name":"BBC-News/Imager.js","owner":{"login":"BBC-News","id":1401475,"avatar_url":"https://avatars.githubusercontent.com/u/1401475?v=3","gravatar_id":"","url":"https://api.github.com/users/BBC-News","html_url":"https://github.com/BBC-News","followers_url":"https://api.github.com/users/BBC-News/followers","following_url":"https://api.github.com/users/BBC-News/following{/other_user}","gists_url":"https://api.github.com/users/BBC-News/gists{/gist_id}","starred_url":"https://api.github.com/users/BBC-News/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBC-News/subscriptions","organizations_url":"https://api.github.com/users/BBC-News/orgs","repos_url":"https://api.github.com/users/BBC-News/repos","events_url":"https://api.github.com/users/BBC-News/events{/privacy}","received_events_url":"https://api.github.com/users/BBC-News/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BBC-News/Imager.js","description":"Responsive images while we wait for srcset to finish cooking","fork":false,"url":"https://api.github.com/repos/BBC-News/Imager.js","forks_url":"https://api.github.com/repos/BBC-News/Imager.js/forks","keys_url":"https://api.github.com/repos/BBC-News/Imager.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BBC-News/Imager.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BBC-News/Imager.js/teams","hooks_url":"https://api.github.com/repos/BBC-News/Imager.js/hooks","issue_events_url":"https://api.github.com/repos/BBC-News/Imager.js/issues/events{/number}","events_url":"https://api.github.com/repos/BBC-News/Imager.js/events","assignees_url":"https://api.github.com/repos/BBC-News/Imager.js/assignees{/user}","branches_url":"https://api.github.com/repos/BBC-News/Imager.js/branches{/branch}","tags_url":"https://api.github.com/repos/BBC-News/Imager.js/tags","blobs_url":"https://api.github.com/repos/BBC-News/Imager.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BBC-News/Imager.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BBC-News/Imager.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/BBC-News/Imager.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BBC-News/Imager.js/statuses/{sha}","languages_url":"https://api.github.com/repos/BBC-News/Imager.js/languages","stargazers_url":"https://api.github.com/repos/BBC-News/Imager.js/stargazers","contributors_url":"https://api.github.com/repos/BBC-News/Imager.js/contributors","subscribers_url":"https://api.github.com/repos/BBC-News/Imager.js/subscribers","subscription_url":"https://api.github.com/repos/BBC-News/Imager.js/subscription","commits_url":"https://api.github.com/repos/BBC-News/Imager.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/BBC-News/Imager.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/BBC-News/Imager.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/BBC-News/Imager.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/BBC-News/Imager.js/contents/{+path}","compare_url":"https://api.github.com/repos/BBC-News/Imager.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BBC-News/Imager.js/merges","archive_url":"https://api.github.com/repos/BBC-News/Imager.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BBC-News/Imager.js/downloads","issues_url":"https://api.github.com/repos/BBC-News/Imager.js/issues{/number}","pulls_url":"https://api.github.com/repos/BBC-News/Imager.js/pulls{/number}","milestones_url":"https://api.github.com/repos/BBC-News/Imager.js/milestones{/number}","notifications_url":"https://api.github.com/repos/BBC-News/Imager.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BBC-News/Imager.js/labels{/name}","releases_url":"https://api.github.com/repos/BBC-News/Imager.js/releases{/id}","created_at":"2013-08-07T08:09:23Z","updated_at":"2015-01-08T09:38:45Z","pushed_at":"2014-12-18T10:15:40Z","git_url":"git://github.com/BBC-News/Imager.js.git","ssh_url":"git@github.com:BBC-News/Imager.js.git","clone_url":"https://github.com/BBC-News/Imager.js.git","svn_url":"https://github.com/BBC-News/Imager.js","homepage":null,"size":7626,"stargazers_count":3334,"watchers_count":3334,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":177,"mirror_url":null,"open_issues_count":17,"forks":177,"open_issues":17,"watchers":3334,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BBC-News/Imager.js/pulls/118"},"html":{"href":"https://github.com/BBC-News/Imager.js/pull/118"},"issue":{"href":"https://api.github.com/repos/BBC-News/Imager.js/issues/118"},"comments":{"href":"https://api.github.com/repos/BBC-News/Imager.js/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/BBC-News/Imager.js/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/BBC-News/Imager.js/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/BBC-News/Imager.js/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/BBC-News/Imager.js/statuses/d7618ce3491d7d3c8476ee64fb2f560027e00086"}}}}