{"action":"created","comment":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/comments/77601081","id":77601081,"diff_hunk":"@@ -172,6 +174,47 @@ ol.inherits(ol.style.Icon, ol.style.Image);\n \n \n /**\n+ * Clones the style.\n+ * @return {ol.style.Icon} The cloned style.\n+ * @api\n+ */\n+ol.style.Icon.prototype.clone = function() {\n+  var oldImage = this.getImage(1);\n+  var newImage;\n+  if (this.iconImage_.getImageState() === ol.Image.State.LOADED) {\n+    if (oldImage.tagName.toUpperCase() === 'IMG') {\n+      newImage = /** @type {Image} */ (this.getImage(1).cloneNode(true));","path":"src/ol/style/icon.js","position":46,"original_position":46,"commit_id":"ad69984cf3eab5b16139df5e3fef80aeafe8adfa","original_commit_id":"ad69984cf3eab5b16139df5e3fef80aeafe8adfa","user":{"login":"simonseyock","id":8100558,"avatar_url":"https://avatars.githubusercontent.com/u/8100558?v=3","gravatar_id":"","url":"https://api.github.com/users/simonseyock","html_url":"https://github.com/simonseyock","followers_url":"https://api.github.com/users/simonseyock/followers","following_url":"https://api.github.com/users/simonseyock/following{/other_user}","gists_url":"https://api.github.com/users/simonseyock/gists{/gist_id}","starred_url":"https://api.github.com/users/simonseyock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonseyock/subscriptions","organizations_url":"https://api.github.com/users/simonseyock/orgs","repos_url":"https://api.github.com/users/simonseyock/repos","events_url":"https://api.github.com/users/simonseyock/events{/privacy}","received_events_url":"https://api.github.com/users/simonseyock/received_events","type":"User","site_admin":false},"body":"Yes, that is an option, i was not sure if an image would be altered after giving it to a style. It seems a bit unlikely to me. You agree on cloning the canvas, though? ","created_at":"2016-09-06T09:28:18Z","updated_at":"2016-09-06T09:28:18Z","html_url":"https://github.com/openlayers/ol3/pull/5832#discussion_r77601081","pull_request_url":"https://api.github.com/repos/openlayers/ol3/pulls/5832","_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments/77601081"},"html":{"href":"https://github.com/openlayers/ol3/pull/5832#discussion_r77601081"},"pull_request":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/5832"}}},"pull_request":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/5832","id":83668720,"html_url":"https://github.com/openlayers/ol3/pull/5832","diff_url":"https://github.com/openlayers/ol3/pull/5832.diff","patch_url":"https://github.com/openlayers/ol3/pull/5832.patch","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/5832","number":5832,"state":"open","locked":false,"title":"(WIP) Add clone methods to styles","user":{"login":"simonseyock","id":8100558,"avatar_url":"https://avatars.githubusercontent.com/u/8100558?v=3","gravatar_id":"","url":"https://api.github.com/users/simonseyock","html_url":"https://github.com/simonseyock","followers_url":"https://api.github.com/users/simonseyock/followers","following_url":"https://api.github.com/users/simonseyock/following{/other_user}","gists_url":"https://api.github.com/users/simonseyock/gists{/gist_id}","starred_url":"https://api.github.com/users/simonseyock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonseyock/subscriptions","organizations_url":"https://api.github.com/users/simonseyock/orgs","repos_url":"https://api.github.com/users/simonseyock/repos","events_url":"https://api.github.com/users/simonseyock/events{/privacy}","received_events_url":"https://api.github.com/users/simonseyock/received_events","type":"User","site_admin":false},"body":"* ol.style.Stroke\r\n* ol.style.Fill\r\n* ol.style.Circle\r\n* ol.style.Icon","created_at":"2016-09-01T16:52:24Z","updated_at":"2016-09-06T09:28:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"540e4018ea4976ae1b28ad23da35be82324bbc35","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openlayers/ol3/pulls/5832/commits","review_comments_url":"https://api.github.com/repos/openlayers/ol3/pulls/5832/comments","review_comment_url":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/5832/comments","statuses_url":"https://api.github.com/repos/openlayers/ol3/statuses/ad69984cf3eab5b16139df5e3fef80aeafe8adfa","head":{"label":"KlausBenndorf:cloneStyle","ref":"cloneStyle","sha":"ad69984cf3eab5b16139df5e3fef80aeafe8adfa","user":{"login":"KlausBenndorf","id":18333114,"avatar_url":"https://avatars.githubusercontent.com/u/18333114?v=3","gravatar_id":"","url":"https://api.github.com/users/KlausBenndorf","html_url":"https://github.com/KlausBenndorf","followers_url":"https://api.github.com/users/KlausBenndorf/followers","following_url":"https://api.github.com/users/KlausBenndorf/following{/other_user}","gists_url":"https://api.github.com/users/KlausBenndorf/gists{/gist_id}","starred_url":"https://api.github.com/users/KlausBenndorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KlausBenndorf/subscriptions","organizations_url":"https://api.github.com/users/KlausBenndorf/orgs","repos_url":"https://api.github.com/users/KlausBenndorf/repos","events_url":"https://api.github.com/users/KlausBenndorf/events{/privacy}","received_events_url":"https://api.github.com/users/KlausBenndorf/received_events","type":"Organization","site_admin":false},"repo":{"id":57211010,"name":"ol3","full_name":"KlausBenndorf/ol3","owner":{"login":"KlausBenndorf","id":18333114,"avatar_url":"https://avatars.githubusercontent.com/u/18333114?v=3","gravatar_id":"","url":"https://api.github.com/users/KlausBenndorf","html_url":"https://github.com/KlausBenndorf","followers_url":"https://api.github.com/users/KlausBenndorf/followers","following_url":"https://api.github.com/users/KlausBenndorf/following{/other_user}","gists_url":"https://api.github.com/users/KlausBenndorf/gists{/gist_id}","starred_url":"https://api.github.com/users/KlausBenndorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KlausBenndorf/subscriptions","organizations_url":"https://api.github.com/users/KlausBenndorf/orgs","repos_url":"https://api.github.com/users/KlausBenndorf/repos","events_url":"https://api.github.com/users/KlausBenndorf/events{/privacy}","received_events_url":"https://api.github.com/users/KlausBenndorf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/KlausBenndorf/ol3","description":"OpenLayers 3","fork":true,"url":"https://api.github.com/repos/KlausBenndorf/ol3","forks_url":"https://api.github.com/repos/KlausBenndorf/ol3/forks","keys_url":"https://api.github.com/repos/KlausBenndorf/ol3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KlausBenndorf/ol3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KlausBenndorf/ol3/teams","hooks_url":"https://api.github.com/repos/KlausBenndorf/ol3/hooks","issue_events_url":"https://api.github.com/repos/KlausBenndorf/ol3/issues/events{/number}","events_url":"https://api.github.com/repos/KlausBenndorf/ol3/events","assignees_url":"https://api.github.com/repos/KlausBenndorf/ol3/assignees{/user}","branches_url":"https://api.github.com/repos/KlausBenndorf/ol3/branches{/branch}","tags_url":"https://api.github.com/repos/KlausBenndorf/ol3/tags","blobs_url":"https://api.github.com/repos/KlausBenndorf/ol3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KlausBenndorf/ol3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KlausBenndorf/ol3/git/refs{/sha}","trees_url":"https://api.github.com/repos/KlausBenndorf/ol3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KlausBenndorf/ol3/statuses/{sha}","languages_url":"https://api.github.com/repos/KlausBenndorf/ol3/languages","stargazers_url":"https://api.github.com/repos/KlausBenndorf/ol3/stargazers","contributors_url":"https://api.github.com/repos/KlausBenndorf/ol3/contributors","subscribers_url":"https://api.github.com/repos/KlausBenndorf/ol3/subscribers","subscription_url":"https://api.github.com/repos/KlausBenndorf/ol3/subscription","commits_url":"https://api.github.com/repos/KlausBenndorf/ol3/commits{/sha}","git_commits_url":"https://api.github.com/repos/KlausBenndorf/ol3/git/commits{/sha}","comments_url":"https://api.github.com/repos/KlausBenndorf/ol3/comments{/number}","issue_comment_url":"https://api.github.com/repos/KlausBenndorf/ol3/issues/comments{/number}","contents_url":"https://api.github.com/repos/KlausBenndorf/ol3/contents/{+path}","compare_url":"https://api.github.com/repos/KlausBenndorf/ol3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KlausBenndorf/ol3/merges","archive_url":"https://api.github.com/repos/KlausBenndorf/ol3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KlausBenndorf/ol3/downloads","issues_url":"https://api.github.com/repos/KlausBenndorf/ol3/issues{/number}","pulls_url":"https://api.github.com/repos/KlausBenndorf/ol3/pulls{/number}","milestones_url":"https://api.github.com/repos/KlausBenndorf/ol3/milestones{/number}","notifications_url":"https://api.github.com/repos/KlausBenndorf/ol3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KlausBenndorf/ol3/labels{/name}","releases_url":"https://api.github.com/repos/KlausBenndorf/ol3/releases{/id}","deployments_url":"https://api.github.com/repos/KlausBenndorf/ol3/deployments","created_at":"2016-04-27T12:17:51Z","updated_at":"2016-07-22T22:27:56Z","pushed_at":"2016-09-05T17:53:19Z","git_url":"git://github.com/KlausBenndorf/ol3.git","ssh_url":"git@github.com:KlausBenndorf/ol3.git","clone_url":"https://github.com/KlausBenndorf/ol3.git","svn_url":"https://github.com/KlausBenndorf/ol3","homepage":"http://openlayers.org","size":59318,"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":"openlayers:master","ref":"master","sha":"617dca34f53e2e78c6166bcbd202454f888b3fc7","user":{"login":"openlayers","id":240579,"avatar_url":"https://avatars.githubusercontent.com/u/240579?v=3","gravatar_id":"","url":"https://api.github.com/users/openlayers","html_url":"https://github.com/openlayers","followers_url":"https://api.github.com/users/openlayers/followers","following_url":"https://api.github.com/users/openlayers/following{/other_user}","gists_url":"https://api.github.com/users/openlayers/gists{/gist_id}","starred_url":"https://api.github.com/users/openlayers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openlayers/subscriptions","organizations_url":"https://api.github.com/users/openlayers/orgs","repos_url":"https://api.github.com/users/openlayers/repos","events_url":"https://api.github.com/users/openlayers/events{/privacy}","received_events_url":"https://api.github.com/users/openlayers/received_events","type":"Organization","site_admin":false},"repo":{"id":4723248,"name":"ol3","full_name":"openlayers/ol3","owner":{"login":"openlayers","id":240579,"avatar_url":"https://avatars.githubusercontent.com/u/240579?v=3","gravatar_id":"","url":"https://api.github.com/users/openlayers","html_url":"https://github.com/openlayers","followers_url":"https://api.github.com/users/openlayers/followers","following_url":"https://api.github.com/users/openlayers/following{/other_user}","gists_url":"https://api.github.com/users/openlayers/gists{/gist_id}","starred_url":"https://api.github.com/users/openlayers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openlayers/subscriptions","organizations_url":"https://api.github.com/users/openlayers/orgs","repos_url":"https://api.github.com/users/openlayers/repos","events_url":"https://api.github.com/users/openlayers/events{/privacy}","received_events_url":"https://api.github.com/users/openlayers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openlayers/ol3","description":"OpenLayers 3","fork":false,"url":"https://api.github.com/repos/openlayers/ol3","forks_url":"https://api.github.com/repos/openlayers/ol3/forks","keys_url":"https://api.github.com/repos/openlayers/ol3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openlayers/ol3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openlayers/ol3/teams","hooks_url":"https://api.github.com/repos/openlayers/ol3/hooks","issue_events_url":"https://api.github.com/repos/openlayers/ol3/issues/events{/number}","events_url":"https://api.github.com/repos/openlayers/ol3/events","assignees_url":"https://api.github.com/repos/openlayers/ol3/assignees{/user}","branches_url":"https://api.github.com/repos/openlayers/ol3/branches{/branch}","tags_url":"https://api.github.com/repos/openlayers/ol3/tags","blobs_url":"https://api.github.com/repos/openlayers/ol3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openlayers/ol3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openlayers/ol3/git/refs{/sha}","trees_url":"https://api.github.com/repos/openlayers/ol3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openlayers/ol3/statuses/{sha}","languages_url":"https://api.github.com/repos/openlayers/ol3/languages","stargazers_url":"https://api.github.com/repos/openlayers/ol3/stargazers","contributors_url":"https://api.github.com/repos/openlayers/ol3/contributors","subscribers_url":"https://api.github.com/repos/openlayers/ol3/subscribers","subscription_url":"https://api.github.com/repos/openlayers/ol3/subscription","commits_url":"https://api.github.com/repos/openlayers/ol3/commits{/sha}","git_commits_url":"https://api.github.com/repos/openlayers/ol3/git/commits{/sha}","comments_url":"https://api.github.com/repos/openlayers/ol3/comments{/number}","issue_comment_url":"https://api.github.com/repos/openlayers/ol3/issues/comments{/number}","contents_url":"https://api.github.com/repos/openlayers/ol3/contents/{+path}","compare_url":"https://api.github.com/repos/openlayers/ol3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openlayers/ol3/merges","archive_url":"https://api.github.com/repos/openlayers/ol3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openlayers/ol3/downloads","issues_url":"https://api.github.com/repos/openlayers/ol3/issues{/number}","pulls_url":"https://api.github.com/repos/openlayers/ol3/pulls{/number}","milestones_url":"https://api.github.com/repos/openlayers/ol3/milestones{/number}","notifications_url":"https://api.github.com/repos/openlayers/ol3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openlayers/ol3/labels{/name}","releases_url":"https://api.github.com/repos/openlayers/ol3/releases{/id}","deployments_url":"https://api.github.com/repos/openlayers/ol3/deployments","created_at":"2012-06-20T06:53:59Z","updated_at":"2016-09-06T06:53:07Z","pushed_at":"2016-09-06T07:20:03Z","git_url":"git://github.com/openlayers/ol3.git","ssh_url":"git@github.com:openlayers/ol3.git","clone_url":"https://github.com/openlayers/ol3.git","svn_url":"https://github.com/openlayers/ol3","homepage":"http://openlayers.org","size":102844,"stargazers_count":2031,"watchers_count":2031,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1040,"mirror_url":null,"open_issues_count":465,"forks":1040,"open_issues":465,"watchers":2031,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/5832"},"html":{"href":"https://github.com/openlayers/ol3/pull/5832"},"issue":{"href":"https://api.github.com/repos/openlayers/ol3/issues/5832"},"comments":{"href":"https://api.github.com/repos/openlayers/ol3/issues/5832/comments"},"review_comments":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/5832/comments"},"review_comment":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/5832/commits"},"statuses":{"href":"https://api.github.com/repos/openlayers/ol3/statuses/ad69984cf3eab5b16139df5e3fef80aeafe8adfa"}}}}
{"actor":{"display_login":"simonseyock"}}