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

Commit

Permalink
Merge pull request #1181 from ckeditor/t/903-new
Browse files Browse the repository at this point in the history
Fix: Fixed memory leak in `DocumentSelection`. Closes #903.
  • Loading branch information
Reinmar authored Dec 11, 2017
2 parents 7755349 + d81b0a6 commit 7e352e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/documentselection.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export default class DocumentSelection extends Selection {

const liveRange = LiveRange.createFromRange( range );

this.listenTo( liveRange, 'change:range', ( evt, oldRange, data ) => {
liveRange.on( 'change:range', ( evt, oldRange, data ) => {
// If `LiveRange` is in whole moved to the graveyard, fix that range.
if ( liveRange.root == this._document.graveyard ) {
this._fixGraveyardSelection( liveRange, data.sourcePosition );
Expand Down

0 comments on commit 7e352e3

Please sign in to comment.