mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 16:19:48 +02:00
added tests for osm/note
This commit is contained in:
@@ -9,7 +9,6 @@ export function actionMoveNote(noteID, toLoc) {
|
||||
|
||||
var note = services.osm.getNote(noteID);
|
||||
note.move(geoVecInterp(note.loc, toLoc, t));
|
||||
// TODO: update
|
||||
};
|
||||
|
||||
action.transitionable = true;
|
||||
|
||||
@@ -329,7 +329,7 @@ function parseXML(xml, callback, options) {
|
||||
// replace or remove note from rtree
|
||||
function updateRtree(item, replace) { // update (or insert) in _noteCache.rtree
|
||||
|
||||
// TODO: other checks needed? (e.g., if cache.data.children.length decrements ...)
|
||||
// NOTE: other checks needed? (e.g., if cache.data.children.length decrements ...)
|
||||
|
||||
// remove note
|
||||
_noteCache.rtree.remove(item, function isEql(a, b) { return a.data.id === b.data.id; });
|
||||
|
||||
Reference in New Issue
Block a user