Merge pull request #8321 from atom/as-pending-frame-folding-specs

Clear pending frames on folding specs
This commit is contained in:
Thomas Johansen
2015-08-11 17:37:11 +02:00

View File

@@ -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)