| Index: tools/dom/src/shared_html.dart
|
| diff --git a/tools/dom/src/shared_html.dart b/tools/dom/src/shared_html.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..165e9196c2be9f25b80b2badb07282956d66c550
|
| --- /dev/null
|
| +++ b/tools/dom/src/shared_html.dart
|
| @@ -0,0 +1,14 @@
|
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +part of dart.dom.html;
|
| +
|
| +_wrapZone(callback) {
|
| + // For performance reasons avoid wrapping if we are in the root zone.
|
| + if (Zone.current == Zone.ROOT) return callback;
|
| + return Zone.current.bindUnaryCallback(callback, runGuarded: true);
|
| +}
|
| +
|
| +Element query(String selector) => document.query(selector);
|
| +ElementList queryAll(String selector) => document.queryAll(selector);
|
|
|