I would like to remove a bunch of deprecation warnings from a package.
Deprecation cop complains about:
All of them are called on an object created by
I guess this is the deprecated call. But I can’t find out by what other call it should be replaced. I tried to replace it with
atom.views.getView(textEditor) (not sure it makes sense: I’m no atom expert), it removes the deprecations warnings but then I get an error:
Uncaught ReferenceError: textEditor is not defined.
What’s the correct way to remove these deprecation warnings?