Mick O'Brien пре 12 година
родитељ
комит
b7db72e574
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      services/web/public/coffee/ide/editor/directives/aceEditor.coffee

+ 2 - 2
services/web/public/coffee/ide/editor/directives/aceEditor.coffee

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