callum-ramage / ctrl-dir-scroll

Add ctrl-up/down single line scrolling to Atom
MIT License
7 stars 4 forks source link

Atom.Object.defineProperty.get is deprecated. #8

Closed jwfeng closed 9 years ago

jwfeng commented 9 years ago

atom.workspaceView is no longer available. In most cases you will not need the view. See the Workspace docs for alternatives: https://atom.io/docs/api/latest/Workspace. If you do need the view, please use atom.views.getView(atom.workspace), which returns an HTMLElement.

Atom.Object.defineProperty.get (C:\Users\111\AppData\Local\atom\app-0.179.0\resources\app\src\atom.js:54:11)
Object.scrollUp (C:\Users\111\.atom\packages\ctrl-dir-scroll\lib\ctrl-dir-scroll.coffee:8:20)
callum-ramage commented 9 years ago

A note for myself on the replacement.

pane = atom.workspace.getActivePane() paneElement = atom.views.getView(pane.getActiveItem())