0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Check for null start block in backspace handler.

This commit is contained in:
Neil Jenkins 2013-04-10 11:08:40 +10:00
parent dd7034501f
commit 77b0b6c716
3 changed files with 3 additions and 3 deletions

View file

@ -2792,7 +2792,7 @@ var keyHandlers = {
}
// If at very beginning of text area, allow backspace
// to break lists/blockquote.
else {
else if ( current ) {
// Break list
if ( getNearest( current, 'UL' ) ||
getNearest( current, 'OL' ) ) {

File diff suppressed because one or more lines are too long

View file

@ -1710,7 +1710,7 @@ var keyHandlers = {
}
// If at very beginning of text area, allow backspace
// to break lists/blockquote.
else {
else if ( current ) {
// Break list
if ( getNearest( current, 'UL' ) ||
getNearest( current, 'OL' ) ) {