Skip to content

Commit

Permalink
Minor improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Aug 12, 2020
1 parent a695349 commit 466c78e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ckeditor5-list/src/liststylescommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ export default class ListStylesCommand extends Command {
* Creates an instance of the command.
*
* @param {module:core/editor/editor~Editor} editor The editor instance.
* @param {String} defaultType The List type that will be used by default if the value was not specified during
* @param {String} defaultType The list type that will be used by default if the value was not specified during
* the command execution.
*/
constructor( editor, defaultType ) {
super( editor );

/**
* The type of the list created by the command.
* The default type of the list style.
*
* @private
* @member {'numbered'|'bulleted'|'todo'}
* @member {String}
*/
this._defaultType = defaultType;
}
Expand Down Expand Up @@ -172,7 +172,7 @@ function getSiblingNodes( position, direction ) {
// ■ List item 4. [listIndent=0]
//
// Ignore nested lists.
if ( element.getAttribute( 'listIndent' ) !== limitIndent ) {
if ( element.getAttribute( 'listIndent' ) > limitIndent ) {
continue;
}

Expand Down

0 comments on commit 466c78e

Please sign in to comment.