Throw error when no animation frame was requested

This commit is contained in:
Ben Ogle & Nathan Sobo
2014-06-18 17:48:42 -07:00
committed by Ben Ogle
parent 2edcc517b1
commit 8295019891

View File

@@ -19,7 +19,7 @@ describe "EditorComponent", ->
spyOn(window, "clearInterval").andCallFake window.fakeClearInterval
delayAnimationFrames = false
nextAnimationFrame = null
nextAnimationFrame = -> throw new Error('No animation frame requested')
spyOn(window, 'requestAnimationFrame').andCallFake (fn) ->
if delayAnimationFrames
nextAnimationFrame = fn