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:
parent
a7b6d2c2ce
commit
d03bad31da
|
@ -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) ->
|
||||
|
|
Loading…
Reference in New Issue