Index: tools/dom/templates/html/impl/impl_Window.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_Window.darttemplate b/tools/dom/templates/html/impl/impl_Window.darttemplate |
index 9563abb24e04da5fb4d8c5fd38f3dee43ac43a08..e2cdaeec3bd3f6498c36ff3f64aaedc21eedd221 100644 |
--- a/tools/dom/templates/html/impl/impl_Window.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_Window.darttemplate |
@@ -246,7 +246,9 @@ $endif |
*/ |
@DomName('Window.cancelAnimationFrame') |
void cancelAnimationFrame(int id) { |
+$if DART2JS |
_ensureRequestAnimationFrame(); |
+$endif |
var task = AnimationFrameTask._tasks.remove(id); |
if (task == null) { |
// Assume that the animation frame request wasn't intercepted by a zone. |