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

Unified Diff: pkg/observe/lib/html.dart

Issue 178683003: [observe] use consistent comment style (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | « no previous file | pkg/observe/lib/observe.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/observe/lib/html.dart
diff --git a/pkg/observe/lib/html.dart b/pkg/observe/lib/html.dart
index 262753149136e9314ae94cb8ff9f9ddcf6f6994a..07b4aff2f94c7e37639cc4d3221827f4b9fa07fd 100644
--- a/pkg/observe/lib/html.dart
+++ b/pkg/observe/lib/html.dart
@@ -6,14 +6,14 @@
// In general, it seems like we want a convenient way to take a Stream plus a
// getter and convert this into an Observable.
-/** Helpers for exposing dart:html as observable data. */
+/// Helpers for exposing dart:html as observable data.
library observe.html;
import 'dart:html';
import 'observe.dart';
-/** An observable version of [window.location.hash]. */
+/// An observable version of [window.location.hash].
final ObservableLocationHash windowLocation = new ObservableLocationHash._();
class ObservableLocationHash extends ChangeNotifier {
@@ -33,10 +33,8 @@ class ObservableLocationHash extends ChangeNotifier {
@reflectable String get hash => window.location.hash;
- /**
- * Pushes a new URL state, similar to the affect of clicking a link.
- * Has no effect if the [value] already equals [window.location.hash].
- */
+ /// Pushes a new URL state, similar to the affect of clicking a link.
+ /// Has no effect if the [value] already equals [window.location.hash].
@reflectable void set hash(String value) {
if (value == hash) return;
@@ -51,11 +49,9 @@ class ObservableLocationHash extends ChangeNotifier {
}
}
-/**
- * *Deprecated* use [CssClassSet.toggle] instead.
- *
- * Add or remove CSS class [className] based on the [value].
- */
+/// *Deprecated* use [CssClassSet.toggle] instead.
+///
+/// Add or remove CSS class [className] based on the [value].
@deprecated
void updateCssClass(Element element, String className, bool value) {
if (value == true) {
@@ -65,12 +61,10 @@ void updateCssClass(Element element, String className, bool value) {
}
}
-/**
- * *Deprecated* use `class="{{ binding }}"` in your HTML instead. It will also
- * work on a `<polymer-element>`.
- *
- * Bind a CSS class to the observable [object] and property [path].
- */
+/// *Deprecated* use `class="{{ binding }}"` in your HTML instead. It will also
+/// work on a `<polymer-element>`.
+///
+/// Bind a CSS class to the observable [object] and property [path].
@deprecated
PathObserver bindCssClass(Element element, String className,
Observable object, String path) {
« no previous file with comments | « no previous file | pkg/observe/lib/observe.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698