mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Protect against stylesheets changing while detached
This commit is contained in:
@@ -626,7 +626,7 @@ TextEditorComponent = React.createClass
|
||||
return unless @performedInitialMeasurement
|
||||
return unless atom.themes.isInitialLoadComplete()
|
||||
|
||||
@refreshScrollbars() if not styleElement? or @containsScrollbarSelector(styleElement.sheet)
|
||||
@refreshScrollbars() if not styleElement.sheet? or @containsScrollbarSelector(styleElement.sheet)
|
||||
@sampleFontStyling()
|
||||
@sampleBackgroundColors()
|
||||
@remeasureCharacterWidths()
|
||||
|
||||
Reference in New Issue
Block a user