Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Unified Diff: samples/webcomponents/shadow_polyfill.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/ui_lib/view/view.dart ('k') | tests/benchmark_smoke/benchmark_base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/webcomponents/shadow_polyfill.dart
diff --git a/samples/webcomponents/shadow_polyfill.dart b/samples/webcomponents/shadow_polyfill.dart
index 42a82417e3fd396d15023f1527aa920ae4ad9afc..672414b825eb3759785dee948d6d0e9d2c874de6 100644
--- a/samples/webcomponents/shadow_polyfill.dart
+++ b/samples/webcomponents/shadow_polyfill.dart
@@ -29,7 +29,7 @@ typedef WebComponentFactory RegistryLookupFunction(String tagName);
// Globals
const int REQUEST_DONE = 4;
CustomElementsManager _manager;
-CustomElementsManager get manager() => _manager;
+CustomElementsManager get manager => _manager;
void initializeComponents(RegistryLookupFunction lookup) {
_manager = new CustomElementsManager._internal(lookup);
@@ -39,7 +39,7 @@ void initializeComponents(RegistryLookupFunction lookup) {
/** A Dart wrapper for a web component. */
abstract class WebComponent {
/** The web component element wrapped by this class. */
- abstract Element get element();
+ abstract Element get element;
/** Invoked when this component gets created. */
abstract void created();
@@ -233,7 +233,7 @@ bool _hasShadowRoot;
* See the [Shadow DOM spec](http://www.w3.org/TR/shadow-dom/) for more
* information about the ShadowRoot.
*/
-bool get hasShadowRoot() {
+bool get hasShadowRoot {
if (_hasShadowRoot == null) {
try {
// TODO(jmesserly): it'd be nice if we could check this without causing
« no previous file with comments | « samples/ui_lib/view/view.dart ('k') | tests/benchmark_smoke/benchmark_base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698