Просмотр исходного кода

fix use of context helper in onChange

Shane Kilkelly 9 лет назад
Родитель
Сommit
8a612df009

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

@@ -142,8 +142,8 @@ define [
 		onChange: (change) ->
 			cursorPosition = @editor.getCursorPosition()
 			end = change.end
-			context = Helpers.getContext(editor, end)
-			{lineUpToCursor, commandFragment, lineBeyondCursor, needsClosingBrace} = context
+			context = Helpers.getContext(@editor, end)
+			{lineUpToCursor, commandFragment, commandName, lineBeyondCursor, needsClosingBrace} = context
 			if lineUpToCursor.match(/.*%.*/)
 				return
 			lastCharIsBackslash = lineUpToCursor.slice(-1) == "\\"