Fix tests

This commit is contained in:
Ansis Brammanis
2013-02-28 14:24:51 -05:00
parent baa9dc6e5e
commit eea85681be
+1 -1
View File
@@ -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]]);
}