diff --git a/modules/ve/actions/ve.FormatAction.js b/modules/ve/actions/ve.FormatAction.js index 79ccbb510e..c927d012f3 100644 --- a/modules/ve/actions/ve.FormatAction.js +++ b/modules/ve/actions/ve.FormatAction.js @@ -71,6 +71,8 @@ ve.FormatAction.prototype.convert = function ( type, attributes ) { selection = ve.FormatAction.splitAndUnwrap( surfaceModel, prevList, firstInList, lastInList, selection ); + // Reset + prevList = firstInList = lastInList = undefined; } if ( listItem ) { prevList = listItem.getParent();