Permalink
Browse files

* Fixed: List.clone is borked

  • Loading branch information...
1 parent 60c655c commit 98bc0cc2c354cf98e095c32f22e8f24cbf59c40d @joehewitt committed Apr 1, 2013
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() {

0 comments on commit 98bc0cc

Please sign in to comment.