Add deprecated rootElement property

This commit is contained in:
Nathan Sobo
2017-04-17 13:57:53 -06:00
committed by Antonio Scandurra
parent a536c5950a
commit 84c20d95d4

View File

@@ -19,6 +19,16 @@ class TextEditorElement extends HTMLElement {
return this
}
get rootElement () {
Grim.deprecate(dedent`
The contents of \`atom-text-editor\` elements are no longer encapsulated
within a shadow DOM boundary. Please, stop using \`rootElement\` and access
the editor contents directly instead.
`)
return this
}
createdCallback () {
this.emitter = new Emitter()
this.initialText = this.textContent