1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-08 04:33:25 +00:00

Replace $isEmpty check

This commit is contained in:
Mick O'Brien 2014-10-08 16:17:38 +01:00
parent 72fc630e81
commit b7db72e574

View file

@ -84,7 +84,7 @@ define [
bindKey: win: "Ctrl-B", mac: "Command-B"
exec: (editor) ->
selection = editor.getSelection()
if selection.$isEmpty
if selection.isEmpty()
editor.insert("\\textbf{}")
editor.navigateLeft(1)
else
@ -98,7 +98,7 @@ define [
bindKey: win: "Ctrl-I", mac: "Command-I"
exec: (editor) ->
selection = editor.getSelection()
if selection.$isEmpty
if selection.isEmpty()
editor.insert("\\textit{}")
editor.navigateLeft(1)
else