Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Fixed: List.clone is borked

  • Loading branch information...
commit 98bc0cc2c354cf98e095c32f22e8f24cbf59c40d 1 parent 60c655c
@joehewitt authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/nodes.js
View
3  lib/nodes.js
@@ -349,8 +349,7 @@ List.prototype = subclass(Node, {
},
clone: function() {
- var items = _.map(this.items, function(node) { return item.clone(); });
- return cloneFix(new Line(this.ordered, items), this);
+ return cloneFix(new List(this.ordered, this.items ? this.items.clone() : null), this);
},
toText: function() {
Please sign in to comment.
Something went wrong with that request. Please try again.