mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Comment out cache in getIssuesForEntityWithID
It seems like entity editor draws before the validator runs so the rendered list is often one history change behind.
This commit is contained in:
@@ -65,10 +65,10 @@ export function coreValidator(context) {
|
||||
self.getIssuesForEntityWithID = function(entityID) {
|
||||
if (!context.hasEntity(entityID)) return [];
|
||||
|
||||
if (!_issuesByEntityID[entityID]) {
|
||||
// if (!_issuesByEntityID[entityID]) {
|
||||
var entity = context.entity(entityID);
|
||||
_issuesByEntityID[entityID] = validateEntity(entity);
|
||||
}
|
||||
// }
|
||||
return _issuesByEntityID[entityID];
|
||||
};
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@ export function uiEntityIssues(context) {
|
||||
var _entityID;
|
||||
|
||||
|
||||
context.validator().on('reload.entity_issues', function() {
|
||||
_selection.selectAll('.entity-issues')
|
||||
.call(render);
|
||||
update();
|
||||
});
|
||||
// context.validator().on('reload.entity_issues', function() {
|
||||
// _selection.selectAll('.entity-issues')
|
||||
// .call(render);
|
||||
// update();
|
||||
// });
|
||||
|
||||
|
||||
function clamp(num, min, max) {
|
||||
|
||||
Reference in New Issue
Block a user