Skip to content

Commit

Permalink
* Fixed: List.clone is borked
Browse files Browse the repository at this point in the history
  • Loading branch information
joehewitt committed Apr 1, 2013
1 parent 60c655c commit 98bc0cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/nodes.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 98bc0cc

Please sign in to comment.