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

Side by Side Diff: packages/observe/lib/html.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « packages/observe/codereview.settings ('k') | packages/observe/lib/mirrors_used.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // TODO(jmesserly): can we handle this more elegantly? 5 // TODO(jmesserly): can we handle this more elegantly?
6 // In general, it seems like we want a convenient way to take a Stream plus a 6 // In general, it seems like we want a convenient way to take a Stream plus a
7 // getter and convert this into an Observable. 7 // getter and convert this into an Observable.
8 8
9 /// Helpers for exposing dart:html as observable data. 9 /// Helpers for exposing dart:html as observable data.
10 library observe.html; 10 library observe.html;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 Observable object, String path) { 70 Observable object, String path) {
71 71
72 callback(value) { 72 callback(value) {
73 updateCssClass(element, className, value); 73 updateCssClass(element, className, value);
74 } 74 }
75 75
76 var obs = new PathObserver(object, path); 76 var obs = new PathObserver(object, path);
77 callback(obs.open(callback)); 77 callback(obs.open(callback));
78 return obs; 78 return obs;
79 } 79 }
OLDNEW
« no previous file with comments | « packages/observe/codereview.settings ('k') | packages/observe/lib/mirrors_used.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698