File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
4
4
import { Disposable } from 'event-kit' ;
5
5
import cx from 'classnames' ;
6
6
7
- import { createItem , autobind , extractProps } from '../helpers' ;
7
+ import { createItem , extractProps } from '../helpers' ;
8
8
import { RefHolderPropType } from '../prop-types' ;
9
9
import { TextEditorContext } from './atom-text-editor' ;
10
10
import { DecorableContext } from './marker' ;
@@ -40,8 +40,6 @@ class BareDecoration extends React.Component {
40
40
constructor ( props , context ) {
41
41
super ( props , context ) ;
42
42
43
- autobind ( this , 'observeParents' ) ;
44
-
45
43
this . decorationHolder = new RefHolder ( ) ;
46
44
this . editorSub = new Disposable ( ) ;
47
45
this . decorableSub = new Disposable ( ) ;
@@ -93,7 +91,7 @@ class BareDecoration extends React.Component {
93
91
}
94
92
}
95
93
96
- observeParents ( ) {
94
+ observeParents = ( ) => {
97
95
this . decorationHolder . map ( decoration => decoration . destroy ( ) ) ;
98
96
99
97
const editorValid = this . props . editorHolder . map ( editor => ! editor . isDestroyed ( ) ) . getOr ( false ) ;
You can’t perform that action at this time.
0 commit comments