From d8fe727434fb780c8e9204a048c7dfca3777bb76 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 11 Mar 2015 22:04:22 -0700 Subject: [PATCH] Fix errors in Sky detected by Dart analyzer R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1000863002 --- examples/fn/lib/fakesky.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/fn/lib/fakesky.dart b/examples/fn/lib/fakesky.dart index 408616016a..b927f1452f 100644 --- a/examples/fn/lib/fakesky.dart +++ b/examples/fn/lib/fakesky.dart @@ -117,7 +117,7 @@ class Document extends ParentNode { } class HTMLImageElement extends Element { - Image(); + HTMLImageElement(); String src; Object style = {}; } @@ -139,6 +139,7 @@ class Window { new Timer(const Duration(milliseconds: 16), () { _callRAF(fn); }); + return 1; } void cancelAnimationFrame(int id) { @@ -150,7 +151,7 @@ Document document = new Document(); Window window = new Window(); class ClientRect { - double top + double top; double right; double bottomr; double left;