atom / toggle-quotes

An Atom package to toggle between single and double quotes
MIT License
77 stars 36 forks source link

TextEditor.get is deprecated. #42

Closed dflock closed 7 years ago

dflock commented 8 years ago

Atom 1.13.0-beta2 Deprecation Cop says:

TextEditor.prototype.displayBuffer has always been private, but now it is gone. Reading the displayBuffer property now returns a reference to the containing TextEditor, which now provides some of the API of the defunct DisplayBuffer class.

TextEditor.get (/usr/share/atom-beta/resources/app.asar/src/text-editor.js:101:14)
toggleQuoteAtPosition (/home/duncan/.atom/packages/toggle-quotes/lib/toggle-quotes.js:31:21)
<unknown> (/home/duncan/.atom/packages/toggle-quotes/lib/toggle-quotes.js:13:7)
TextBuffer.transact (/usr/share/atom-beta/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:867:18)
TextEditor.transact (/usr/share/atom-beta/resources/app.asar/src/text-editor.js:1566:26)
toggleQuotes (/home/duncan/.atom/packages/toggle-quotes/lib/toggle-quotes.js:10:10)
tdbs commented 7 years ago

👍