Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Changed: Removed a case in upcast converters which is not needed when…
Browse files Browse the repository at this point in the history
… converters do not handle passing element instance.
  • Loading branch information
scofalik committed Feb 12, 2018
1 parent d40ead0 commit 5e492da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/conversion/upcast-converters.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,8 @@ function _prepareToElementConverter( config ) {
function _getModelElement( model, input, writer ) {
if ( model instanceof Function ) {
return model( input, writer );
} else if ( typeof model == 'string' ) {
return writer.createElement( model );
} else {
return model;
return writer.createElement( model );
}
}

Expand Down

0 comments on commit 5e492da

Please sign in to comment.