| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of dart.dom.html; | 5 part of dart.dom.html; |
| 6 | 6 |
| 7 _wrapZone(callback) { | 7 _wrapZone(callback) { |
| 8 // For performance reasons avoid wrapping if we are in the root zone. | 8 // For performance reasons avoid wrapping if we are in the root zone. |
| 9 if (Zone.current == Zone.ROOT) return callback; | 9 if (Zone.current == Zone.ROOT) return callback; |
| 10 return Zone.current.bindUnaryCallback(callback, runGuarded: true); | 10 return Zone.current.bindUnaryCallback(callback, runGuarded: true); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 @Experimental() | 23 @Experimental() |
| 24 Element query(String relativeSelectors) => document.query(relativeSelectors); | 24 Element query(String relativeSelectors) => document.query(relativeSelectors); |
| 25 /** | 25 /** |
| 26 * Alias for [querySelectorAll]. Note this function is deprecated because its | 26 * Alias for [querySelectorAll]. Note this function is deprecated because its |
| 27 * semantics will be changing in the future. | 27 * semantics will be changing in the future. |
| 28 */ | 28 */ |
| 29 @deprecated | 29 @deprecated |
| 30 @Experimental() | 30 @Experimental() |
| 31 ElementList queryAll(String relativeSelectors) => document.queryAll(relativeSele
ctors); | 31 ElementList queryAll(String relativeSelectors) => document.queryAll(relativeSele
ctors); |
| 32 | 32 |
| 33 Element querySelector(String selector) => document.querySelector(selector); | 33 Element querySelector(String selectors) => document.querySelector(selectors); |
| 34 ElementList querySelectorAll(String selector) => document.querySelectorAll(selec
tor); | 34 ElementList querySelectorAll(String selectors) => document.querySelectorAll(sele
ctors); |
| OLD | NEW |