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

Make sure gotoLine works when changing session

James Allen 12 лет назад
Родитель
Сommit
088d27f22b

+ 0 - 1
services/web/public/coffee/ide/editor/EditorManager.coffee

@@ -9,7 +9,6 @@ define [
 				sharejs_doc: null
 				open_doc_id: null
 				opening: true
-				gotoLine: null
 			}
 
 			@$scope.$on "entity:selected", (event, entity) =>

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

@@ -33,7 +33,6 @@ define [
 				highlights: "="
 				text: "="
 				readOnly: "="
-				gotoLine: "="
 				annotations: "="
 				navigateHighlights: "="
 			}

+ 1 - 1
services/web/public/coffee/ide/editor/directives/aceEditor/cursor-position/CursorPositionManager.coffee

@@ -27,7 +27,7 @@ define [], () ->
 				if value?
 					setTimeout () =>
 						@gotoLine(value)
-					, 0
+					, 10 # Hack: Must happen after @gotoStoredPosition
 
 		storeScrollTopPosition: (session) ->
 			if @doc_id?