mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Merge pull request #8321 from atom/as-pending-frame-folding-specs
Clear pending frames on folding specs
This commit is contained in:
@@ -824,7 +824,8 @@ describe "TextEditorComponent", ->
|
||||
|
||||
describe "when the component is destroyed", ->
|
||||
it "stops listening for folding events", ->
|
||||
nextAnimationFrame()
|
||||
nextAnimationFrame() unless nextAnimationFrame is noAnimationFrame # clear pending frame request if needed
|
||||
|
||||
component.destroy()
|
||||
|
||||
lineNumber = component.lineNumberNodeForScreenRow(1)
|
||||
|
||||
Reference in New Issue
Block a user