{"action":"created","comment":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/comments/54104359","id":54104359,"diff_hunk":"@@ -93,6 +93,16 @@ goog.inherits(ol.renderer.dom.VectorLayer, ol.renderer.dom.Layer);\n /**\n  * @inheritDoc\n  */\n+ol.renderer.dom.VectorLayer.prototype.clearFrame = function() {\n+  this.context_.canvas.width = 0;\n+  this.context_.canvas.height = 0;","path":"src/ol/renderer/dom/domvectorlayerrenderer.js","position":6,"original_position":6,"commit_id":"348f61951cbe8f28b8b269ae2f1be1db9910ca71","original_commit_id":"348f61951cbe8f28b8b269ae2f1be1db9910ca71","user":{"login":"fredj","id":100959,"avatar_url":"https://avatars.githubusercontent.com/u/100959?v=3","gravatar_id":"","url":"https://api.github.com/users/fredj","html_url":"https://github.com/fredj","followers_url":"https://api.github.com/users/fredj/followers","following_url":"https://api.github.com/users/fredj/following{/other_user}","gists_url":"https://api.github.com/users/fredj/gists{/gist_id}","starred_url":"https://api.github.com/users/fredj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredj/subscriptions","organizations_url":"https://api.github.com/users/fredj/orgs","repos_url":"https://api.github.com/users/fredj/repos","events_url":"https://api.github.com/users/fredj/events{/privacy}","received_events_url":"https://api.github.com/users/fredj/received_events","type":"User","site_admin":false},"body":"You're right; we always do\r\n```javascript\r\nvar canvas = this.context_.canvas;\r\ncanvas.width = canvas.width;\r\n```\r\nto clear the canvas, let's do the same here.","created_at":"2016-02-25T14:46:00Z","updated_at":"2016-02-25T14:46:00Z","html_url":"https://github.com/openlayers/ol3/pull/4909#discussion_r54104359","pull_request_url":"https://api.github.com/repos/openlayers/ol3/pulls/4909","_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments/54104359"},"html":{"href":"https://github.com/openlayers/ol3/pull/4909#discussion_r54104359"},"pull_request":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4909"}}},"pull_request":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/4909","id":60524365,"html_url":"https://github.com/openlayers/ol3/pull/4909","diff_url":"https://github.com/openlayers/ol3/pull/4909.diff","patch_url":"https://github.com/openlayers/ol3/pull/4909.patch","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/4909","number":4909,"state":"closed","locked":false,"title":"Add ol.renderer.dom.VectorLayer#clearFrame","user":{"login":"fredj","id":100959,"avatar_url":"https://avatars.githubusercontent.com/u/100959?v=3","gravatar_id":"","url":"https://api.github.com/users/fredj","html_url":"https://github.com/fredj","followers_url":"https://api.github.com/users/fredj/followers","following_url":"https://api.github.com/users/fredj/following{/other_user}","gists_url":"https://api.github.com/users/fredj/gists{/gist_id}","starred_url":"https://api.github.com/users/fredj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredj/subscriptions","organizations_url":"https://api.github.com/users/fredj/orgs","repos_url":"https://api.github.com/users/fredj/repos","events_url":"https://api.github.com/users/fredj/events{/privacy}","received_events_url":"https://api.github.com/users/fredj/received_events","type":"User","site_admin":false},"body":"Fixes #4907","created_at":"2016-02-24T15:18:50Z","updated_at":"2016-02-25T14:46:00Z","closed_at":"2016-02-25T09:08:14Z","merged_at":"2016-02-25T09:08:14Z","merge_commit_sha":"dffef638f10b6a1d920358d70d01b1c6bd4d627e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openlayers/ol3/pulls/4909/commits","review_comments_url":"https://api.github.com/repos/openlayers/ol3/pulls/4909/comments","review_comment_url":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/4909/comments","statuses_url":"https://api.github.com/repos/openlayers/ol3/statuses/348f61951cbe8f28b8b269ae2f1be1db9910ca71","head":{"label":"fredj:dom_vector_clear","ref":"dom_vector_clear","sha":"348f61951cbe8f28b8b269ae2f1be1db9910ca71","user":{"login":"fredj","id":100959,"avatar_url":"https://avatars.githubusercontent.com/u/100959?v=3","gravatar_id":"","url":"https://api.github.com/users/fredj","html_url":"https://github.com/fredj","followers_url":"https://api.github.com/users/fredj/followers","following_url":"https://api.github.com/users/fredj/following{/other_user}","gists_url":"https://api.github.com/users/fredj/gists{/gist_id}","starred_url":"https://api.github.com/users/fredj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredj/subscriptions","organizations_url":"https://api.github.com/users/fredj/orgs","repos_url":"https://api.github.com/users/fredj/repos","events_url":"https://api.github.com/users/fredj/events{/privacy}","received_events_url":"https://api.github.com/users/fredj/received_events","type":"User","site_admin":false},"repo":{"id":5122438,"name":"ol3","full_name":"fredj/ol3","owner":{"login":"fredj","id":100959,"avatar_url":"https://avatars.githubusercontent.com/u/100959?v=3","gravatar_id":"","url":"https://api.github.com/users/fredj","html_url":"https://github.com/fredj","followers_url":"https://api.github.com/users/fredj/followers","following_url":"https://api.github.com/users/fredj/following{/other_user}","gists_url":"https://api.github.com/users/fredj/gists{/gist_id}","starred_url":"https://api.github.com/users/fredj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredj/subscriptions","organizations_url":"https://api.github.com/users/fredj/orgs","repos_url":"https://api.github.com/users/fredj/repos","events_url":"https://api.github.com/users/fredj/events{/privacy}","received_events_url":"https://api.github.com/users/fredj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fredj/ol3","description":"OpenLayers 3","fork":true,"url":"https://api.github.com/repos/fredj/ol3","forks_url":"https://api.github.com/repos/fredj/ol3/forks","keys_url":"https://api.github.com/repos/fredj/ol3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fredj/ol3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fredj/ol3/teams","hooks_url":"https://api.github.com/repos/fredj/ol3/hooks","issue_events_url":"https://api.github.com/repos/fredj/ol3/issues/events{/number}","events_url":"https://api.github.com/repos/fredj/ol3/events","assignees_url":"https://api.github.com/repos/fredj/ol3/assignees{/user}","branches_url":"https://api.github.com/repos/fredj/ol3/branches{/branch}","tags_url":"https://api.github.com/repos/fredj/ol3/tags","blobs_url":"https://api.github.com/repos/fredj/ol3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fredj/ol3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fredj/ol3/git/refs{/sha}","trees_url":"https://api.github.com/repos/fredj/ol3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fredj/ol3/statuses/{sha}","languages_url":"https://api.github.com/repos/fredj/ol3/languages","stargazers_url":"https://api.github.com/repos/fredj/ol3/stargazers","contributors_url":"https://api.github.com/repos/fredj/ol3/contributors","subscribers_url":"https://api.github.com/repos/fredj/ol3/subscribers","subscription_url":"https://api.github.com/repos/fredj/ol3/subscription","commits_url":"https://api.github.com/repos/fredj/ol3/commits{/sha}","git_commits_url":"https://api.github.com/repos/fredj/ol3/git/commits{/sha}","comments_url":"https://api.github.com/repos/fredj/ol3/comments{/number}","issue_comment_url":"https://api.github.com/repos/fredj/ol3/issues/comments{/number}","contents_url":"https://api.github.com/repos/fredj/ol3/contents/{+path}","compare_url":"https://api.github.com/repos/fredj/ol3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fredj/ol3/merges","archive_url":"https://api.github.com/repos/fredj/ol3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fredj/ol3/downloads","issues_url":"https://api.github.com/repos/fredj/ol3/issues{/number}","pulls_url":"https://api.github.com/repos/fredj/ol3/pulls{/number}","milestones_url":"https://api.github.com/repos/fredj/ol3/milestones{/number}","notifications_url":"https://api.github.com/repos/fredj/ol3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fredj/ol3/labels{/name}","releases_url":"https://api.github.com/repos/fredj/ol3/releases{/id}","deployments_url":"https://api.github.com/repos/fredj/ol3/deployments","created_at":"2012-07-20T11:32:02Z","updated_at":"2014-09-02T14:08:12Z","pushed_at":"2016-02-25T13:29:36Z","git_url":"git://github.com/fredj/ol3.git","ssh_url":"git@github.com:fredj/ol3.git","clone_url":"https://github.com/fredj/ol3.git","svn_url":"https://github.com/fredj/ol3","homepage":null,"size":35375,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"openlayers:master","ref":"master","sha":"bd5c85acc3f5eaeeea0ef3a519fe9f7bb6499932","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-02-25T07:38:23Z","pushed_at":"2016-02-25T14:15:47Z","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":97962,"stargazers_count":1658,"watchers_count":1658,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":904,"mirror_url":null,"open_issues_count":405,"forks":904,"open_issues":405,"watchers":1658,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4909"},"html":{"href":"https://github.com/openlayers/ol3/pull/4909"},"issue":{"href":"https://api.github.com/repos/openlayers/ol3/issues/4909"},"comments":{"href":"https://api.github.com/repos/openlayers/ol3/issues/4909/comments"},"review_comments":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4909/comments"},"review_comment":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openlayers/ol3/pulls/4909/commits"},"statuses":{"href":"https://api.github.com/repos/openlayers/ol3/statuses/348f61951cbe8f28b8b269ae2f1be1db9910ca71"}}}}