Skip to content

Commit 108c969

Browse files
committed
Transction#getModifiedRange: Remove deprecated argument support
Deprecated 2 years ago. There are no uses of the old style according to CodeSearch. Change-Id: Ia30207e5154090a9121913ca49d9a1424b693e42
1 parent eb1fafb commit 108c969

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/dm/ve.dm.Transaction.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -512,12 +512,7 @@ ve.dm.Transaction.prototype.getModifiedRange = function ( doc, options ) {
512512
oldOffset = 0,
513513
offset = 0;
514514

515-
if ( typeof options === 'boolean' ) {
516-
// Backwards compatibility
517-
options = { includeInternalList: options };
518-
} else {
519-
options = options || {};
520-
}
515+
options = options || {};
521516

522517
if ( !options.includeInternalList ) {
523518
const internalListNode = doc.getInternalList().getListNode();

0 commit comments

Comments
 (0)