Index: samples/leap/leap_leg.dart |
diff --git a/samples/leap/leap_leg.dart b/samples/leap/leap_leg.dart |
index 874711b19e4089e1b285ef36847d32e2816777a6..20ef72d4119fb5781b0c05b3c52f9ff8d129410b 100644 |
--- a/samples/leap/leap_leg.dart |
+++ b/samples/leap/leap_leg.dart |
@@ -14,13 +14,13 @@ compilerIsolate(port) { |
main() { |
dom.document.getElementById('status').innerHTML = 'Initializing compiler'; |
final iframe = dom.document.getElementById('isolate'); |
- setOutline(msg, _) { |
+ setOutline(msg) { |
dom.document.getElementById('out').innerHTML = msg; |
} |
dom.spawnDomIsolate(iframe.contentWindow, 'compilerIsolate').then((sendPort) { |
update(_) { |
String text = dom.document.getElementById('code').innerText; |
- sendPort.call(text).receive(setOutline); |
+ sendPort.call(text).then(setOutline); |
dom.document.getElementById('status').innerHTML = 'Ready'; |
} |
update(null); |