Skip to content

Commit

Permalink
Fix method signature for createListItem in ListItem#clone
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Jul 19, 2016
1 parent 63c1912 commit d131f17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/js/models/list-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ export default class ListItem extends Markerable {
beforeSection, afterSection, marker, offset);
}

clone() {
const item = this.builder.createListItem();
this.markers.forEach(m => item.markers.append(m.clone()));
return item;
}

get post() {
return this.section.post;
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/models/post-node-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class PostNodeBuilder {
createMarkerableSection(type, tagName, markers=[]) {
switch (type) {
case LIST_ITEM_TYPE:
return this.createListItem(tagName, markers);
return this.createListItem(markers);
case MARKUP_SECTION_TYPE:
return this.createMarkupSection(tagName, markers);
default:
Expand Down

0 comments on commit d131f17

Please sign in to comment.