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

Second parameter of LiveRange#event:change is now deletionPosition not operation that changed the range #1487

Closed
wants to merge 1 commit into from

Conversation

scofalik
Copy link
Contributor

@scofalik scofalik commented Jul 31, 2018

Suggested merge commit message (convention)

Other: Second parameter of LiveRange#event:change is now deletionPosition not the operation that changed the range. Closes ckeditor/ckeditor5#4378.

…nPosition` not operation that changed the range.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0008%) to 98.852% when pulling 252c077 on t/1463 into 00fbf7f on master.

@@ -750,14 +750,14 @@ class LiveSelection extends Selection {

const liveRange = LiveRange.createFromRange( range );

liveRange.on( 'change:range', ( evt, oldRange, operation ) => {
liveRange.on( 'change:range', ( evt, oldRange, deletionPosition ) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be an object in case we need to add more properties in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@pjasiun
Copy link

pjasiun commented Aug 9, 2018

Moved to #1497.

@pjasiun pjasiun closed this Aug 9, 2018
@pjasiun pjasiun deleted the t/1463 branch August 9, 2018 13:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants