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

Unified Diff: samples/swarm/SwarmViews.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/swarm/SwarmState.dart ('k') | samples/swarm/Views.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/SwarmViews.dart
diff --git a/samples/swarm/SwarmViews.dart b/samples/swarm/SwarmViews.dart
index 417ac0cf6fcff4925d93b28505aa16be6fb727f7..c40f571ccbc3bc549ce8f3638df6ac5b575786ee 100644
--- a/samples/swarm/SwarmViews.dart
+++ b/samples/swarm/SwarmViews.dart
@@ -85,7 +85,7 @@ class FrontView extends CompositeView {
sections.viewSelected = _onSectionTransitionEnded;
}
- SectionView get currentSection() {
+ SectionView get currentSection {
var view = sections.selectedView;
// TODO(jmesserly): this code works around a bug in the DartC --optimize
if (view == null) {
@@ -513,8 +513,8 @@ class DataSourceViewFactory implements ViewFactory<Feed> {
View newView(Feed data) => new DataSourceView(data, swarm);
- int get width() => ArticleViewLayout.getSingleton().width;
- int get height() => null; // Width for this view isn't known.
+ int get width => ArticleViewLayout.getSingleton().width;
+ int get height => null; // Width for this view isn't known.
}
@@ -575,7 +575,7 @@ class ToggleButton extends View {
node.on.click.add((event) { toggle(); }, false);
}
- String get state() {
+ String get state {
final currentState = node.innerHTML;
assert(states.indexOf(currentState, 0) >= 0);
return currentState;
@@ -848,7 +848,7 @@ class StoryContentView extends View {
StoryContentView(this.swarm, this.item) : super();
- get childViews() => [_pagedStory];
+ get childViews => [_pagedStory];
Element render() {
final storyContent = new Element.html(
« no previous file with comments | « samples/swarm/SwarmState.dart ('k') | samples/swarm/Views.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698