Skip to content

Commit

Permalink
Update const name to element.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias committed Jun 15, 2017
1 parent 90d8658 commit 7b172da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blocks/editable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ export default class Editable extends wp.element.Component {
const beforeFragment = beforeRange.extractContents();
const afterFragment = afterRange.extractContents();

const beforeReact = nodeListToReact( beforeFragment.childNodes, createElement );
const afterReact = nodeListToReact( afterFragment.childNodes, createElement );
const beforeElement = nodeListToReact( beforeFragment.childNodes, createElement );
const afterElement = nodeListToReact( afterFragment.childNodes, createElement );

this.setContent( beforeReact );
this.props.onSplit( beforeReact, afterReact );
this.setContent( beforeElement );
this.props.onSplit( beforeElement, afterElement );
}
}

Expand Down

0 comments on commit 7b172da

Please sign in to comment.