{"action":"created","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/2998","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/2998/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/2998/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/2998/events","html_url":"https://github.com/CartoDB/cartodb/pull/2998","id":65723810,"number":2998,"title":"Removes rendering binding so it doesn't get fired every time a map is removed","user":{"login":"javierarce","id":4933,"avatar_url":"https://avatars.githubusercontent.com/u/4933?v=3","gravatar_id":"","url":"https://api.github.com/users/javierarce","html_url":"https://github.com/javierarce","followers_url":"https://api.github.com/users/javierarce/followers","following_url":"https://api.github.com/users/javierarce/following{/other_user}","gists_url":"https://api.github.com/users/javierarce/gists{/gist_id}","starred_url":"https://api.github.com/users/javierarce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javierarce/subscriptions","organizations_url":"https://api.github.com/users/javierarce/orgs","repos_url":"https://api.github.com/users/javierarce/repos","events_url":"https://api.github.com/users/javierarce/events{/privacy}","received_events_url":"https://api.github.com/users/javierarce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-01T16:25:49Z","updated_at":"2015-04-06T12:48:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CartoDB/cartodb/pulls/2998","html_url":"https://github.com/CartoDB/cartodb/pull/2998","diff_url":"https://github.com/CartoDB/cartodb/pull/2998.diff","patch_url":"https://github.com/CartoDB/cartodb/pull/2998.patch"},"body":"See original ticket to understand the problem: https://github.com/CartoDB/cartodb/issues/2921\r\n\r\nThis is what it seems to be happening: when several maps are removed on a batch in the new dashboard, the [render method]( https://github.com/CartoDB/cartodb/blob/master/lib/assets/javascripts/cartodb/new_dashboard/list_view.js#L32) of the list view is called once per visualization. Maps that are going to be removed are rendered, but since the method that loads the vizjson to draw the preview is asynchronous, it can happen that we attempt to create a preview of a vizjson that doesn't exist anymore.\r\n\r\nSince we are refreshing the collection when the removal of all the elements is finished, we don't need to bind the 'remove' event in the collection."},"comment":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/comments/90048240","html_url":"https://github.com/CartoDB/cartodb/pull/2998#issuecomment-90048240","issue_url":"https://api.github.com/repos/CartoDB/cartodb/issues/2998","id":90048240,"user":{"login":"Cartofante","id":5066482,"avatar_url":"https://avatars.githubusercontent.com/u/5066482?v=3","gravatar_id":"","url":"https://api.github.com/users/Cartofante","html_url":"https://github.com/Cartofante","followers_url":"https://api.github.com/users/Cartofante/followers","following_url":"https://api.github.com/users/Cartofante/following{/other_user}","gists_url":"https://api.github.com/users/Cartofante/gists{/gist_id}","starred_url":"https://api.github.com/users/Cartofante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cartofante/subscriptions","organizations_url":"https://api.github.com/users/Cartofante/orgs","repos_url":"https://api.github.com/users/Cartofante/repos","events_url":"https://api.github.com/users/Cartofante/events{/privacy}","received_events_url":"https://api.github.com/users/Cartofante/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T12:48:00Z","updated_at":"2015-04-06T12:48:00Z","body":"Frontend tests were OK :+1: ([details](http://clinker.cartodb.net/jenkins/job/CartoDB-PR-testing/2775/))"}}