0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -05:00

Fix method call names in _onCut handler.

This commit is contained in:
Neil Jenkins 2013-07-17 17:12:43 +10:00
parent 731a1da910
commit f918a0106b
3 changed files with 7 additions and 7 deletions

View file

@ -2457,9 +2457,9 @@ var afterCut = function ( self ) {
proto._onCut = function () { proto._onCut = function () {
// Save undo checkpoint // Save undo checkpoint
var range = this.getSelection(); var range = this.getSelection();
this.recordUndoState( range ); this._recordUndoState( range );
this.getRangeAndRemoveBookmark( range ); this._getRangeAndRemoveBookmark( range );
this._setSelection( range ); this.setSelection( range );
setTimeout( function () { afterCut( this ); }, 0 ); setTimeout( function () { afterCut( this ); }, 0 );
}; };

File diff suppressed because one or more lines are too long

View file

@ -1410,9 +1410,9 @@ var afterCut = function ( self ) {
proto._onCut = function () { proto._onCut = function () {
// Save undo checkpoint // Save undo checkpoint
var range = this.getSelection(); var range = this.getSelection();
this.recordUndoState( range ); this._recordUndoState( range );
this.getRangeAndRemoveBookmark( range ); this._getRangeAndRemoveBookmark( range );
this._setSelection( range ); this.setSelection( range );
setTimeout( function () { afterCut( this ); }, 0 ); setTimeout( function () { afterCut( this ); }, 0 );
}; };