Skip to content

Commit

Permalink
Remove Marker.createBlank
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Aug 7, 2015
1 parent 433b783 commit 1c1f04b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/js/models/marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import {
import { detect } from 'content-kit-editor/utils/array-utils';

const Marker = class Marker {
static createBlank() {
return new Marker('');
}

constructor(value='', markups=[]) {
this.value = value;
this.markups = [];
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 @@ -45,7 +45,7 @@ export default class PostNodeBuilder {
}

createBlankMarker() {
return new Marker('__BLANK__');
return new Marker('');
}

createMarkup(tagName, attributes) {
Expand Down
3 changes: 1 addition & 2 deletions src/js/models/post.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Marker from './marker';
export const POST_TYPE = 'post';

// FIXME: making sections a linked-list would greatly improve this
Expand Down Expand Up @@ -46,7 +45,7 @@ export default class Post {
// add a blank marker to any sections that are now empty
changedSections.forEach(section => {
if (section.isEmpty()) {
section.appendMarker(Marker.createBlank());
section.appendMarker(this.builder.createBlankMarker());
}
});

Expand Down

0 comments on commit 1c1f04b

Please sign in to comment.