mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 06:35:20 +02:00
Fix tests
This commit is contained in:
+1
-1
@@ -123,7 +123,7 @@ _.extend(iD.Way.prototype, {
|
||||
var childnodes = resolver.childNodes(this);
|
||||
|
||||
// Close unclosed way
|
||||
if (close && !this.isClosed()) {
|
||||
if (close && !this.isClosed() && childnodes.length) {
|
||||
childnodes = childnodes.concat([childnodes[0]]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user