From 8295019891c54314bcf451287864f9983efa9024 Mon Sep 17 00:00:00 2001 From: Ben Ogle & Nathan Sobo Date: Wed, 18 Jun 2014 17:48:42 -0700 Subject: [PATCH] Throw error when no animation frame was requested --- spec/editor-component-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/editor-component-spec.coffee b/spec/editor-component-spec.coffee index 6b988f818..de7439917 100644 --- a/spec/editor-component-spec.coffee +++ b/spec/editor-component-spec.coffee @@ -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