Fix compatibility with atom 1.9.x #979

Due to changes between atom 1.8 and 1.9 is editor.viewRegistry not availbale,
it has to be changed to atom.views.
This commit is contained in:
Ra100 2016-05-18 10:40:27 +02:00
parent a7b6d2c2ce
commit d03bad31da
1 changed files with 2 additions and 2 deletions

View File

@ -28,10 +28,10 @@ $ = null
# return data;
# }
getScrollTop = (editor) ->
view = editor.viewRegistry.getView(editor)
view = atom.views.getView(editor)
view.getScrollTop()
setScrollTop = (editor, value) ->
view = editor.viewRegistry.getView(editor)
view = atom.views.getView(editor)
view.setScrollTop value
getCursors = (editor) ->