Close #1181. Fix error "Cannot read property 'setScrollTop' of null"
This commit is contained in:
parent
70dbad5819
commit
803c35dfa4
|
@ -29,10 +29,10 @@ $ = null
|
|||
# }
|
||||
getScrollTop = (editor) ->
|
||||
view = atom.views.getView(editor)
|
||||
view.getScrollTop()
|
||||
view?.getScrollTop()
|
||||
setScrollTop = (editor, value) ->
|
||||
view = atom.views.getView(editor)
|
||||
view.setScrollTop value
|
||||
view?.setScrollTop value
|
||||
|
||||
getCursors = (editor) ->
|
||||
cursors = editor.getCursors()
|
||||
|
|
Loading…
Reference in New Issue