Chromium Code Reviews| Index: lib/dom/src/native_DOMPublic.dart |
| diff --git a/lib/dom/src/native_DOMPublic.dart b/lib/dom/src/native_DOMPublic.dart |
| index fe76bea11d339f31e90d2ea4029d45bca0f21a49..3e1ebd411cf3a628c0adc59791cc46e8e8285a6c 100644 |
| --- a/lib/dom/src/native_DOMPublic.dart |
| +++ b/lib/dom/src/native_DOMPublic.dart |
| @@ -3,14 +3,8 @@ |
| // BSD-style license that can be found in the LICENSE file. |
| // This API is exploratory. |
| -spawnDomIsolate(Window targetWindow, String entryPoint) { |
| - if (targetWindow is! _DOMWindowImpl && targetWindow is! _DOMWindowCrossFrameImpl) { |
| - throw 'Bad window argument: $targetWindow'; |
| - } |
| - final result = new Completer<SendPort>(); |
| - final port = _Utils.spawnDomIsolateImpl(targetWindow, entryPoint); |
| - window.setTimeout(() { result.complete(port); }, 0); |
| - return result.future; |
| +spawnDomFunction(Function topLevelFunction) { |
|
Anton Muhin
2012/08/07 12:55:29
nit: arrow syntax, please
vsm
2012/08/10 00:06:43
Done.
|
| + return _Utils.spawnDomFunctionImpl(topLevelFunction); |
| } |
| // layoutTestController implementation. |