Index: tools/dom/templates/html/dart2js/impl_Window.darttemplate |
diff --git a/tools/dom/templates/html/dart2js/impl_Window.darttemplate b/tools/dom/templates/html/dart2js/impl_Window.darttemplate |
index 93f988485ffab5e17a94a63ea9d88bfa097d4038..37b7982723160d83968a2811f9c56abeb2ab64c1 100644 |
--- a/tools/dom/templates/html/dart2js/impl_Window.darttemplate |
+++ b/tools/dom/templates/html/dart2js/impl_Window.darttemplate |
@@ -115,7 +115,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { |
if ($this.requestAnimationFrame && $this.cancelAnimationFrame) return; |
$this.requestAnimationFrame = function(callback) { |
return window.setTimeout(function() { |
- callback(Date.now()); |
+ callback(DateTime.now()); |
}, 16 /* 16ms ~= 60fps */); |
}; |
$this.cancelAnimationFrame = function(id) { clearTimeout(id); } |