Skip to content

Commit cb0abf9

Browse files
adeluramlewand
authored andcommitted
Checking whether object exists before calling method on it.
1 parent d626571 commit cb0abf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/undo/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@
898898
ieFunctionKeysWorkaround = CKEDITOR.env.ie && keyCode in backspaceOrDelete;
899899

900900
// IE: backspace/del would still call keypress event, even if nothing was removed.
901-
if ( ieFunctionKeysWorkaround && this.lastKeydownImage.equalsContent( new Image( editor, true ) ) ) {
901+
if ( ieFunctionKeysWorkaround && this.lastKeydownImage && this.lastKeydownImage.equalsContent( new Image( editor, true ) ) ) {
902902
return;
903903
}
904904

0 commit comments

Comments
 (0)