| 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 682813b9dd77a372278816e4dd13755bf3ffddda..d8d90d610417447acfb9a3423f784baee18a2522 100644
|
| --- a/tools/dom/templates/html/impl/impl_Window.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Window.darttemplate
|
| @@ -58,8 +58,10 @@ $endif
|
| * [animationFrame] again for the animation to continue.
|
| */
|
| Future<num> get animationFrame {
|
| - var completer = new Completer<int>();
|
| - requestAnimationFrame(completer.complete);
|
| + var completer = new Completer<num>();
|
| + requestAnimationFrame((time) {
|
| + completer.complete(time);
|
| + });
|
| return completer.future;
|
| }
|
|
|
|
|