Make sure gotoLine works when changing session

This commit is contained in:
James Allen 2014-07-21 11:50:02 +01:00
parent 6212b1c375
commit 088d27f22b
3 changed files with 1 additions and 3 deletions

View file

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

View file

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

View file

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