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

Unified Diff: example/explainer/fruitsearch.html

Issue 11471037: Updating dwc for breaking changes that will be part of the next sdk (Closed) Base URL: git@github.com:dart-lang/dart-web-components.git@master
Patch Set: Created 8 years 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
Index: example/explainer/fruitsearch.html
diff --git a/example/explainer/fruitsearch.html b/example/explainer/fruitsearch.html
index b25c3075618d4f0fa87fee250ac3b7c462428933..f20743afe2925754e39af1976e84cd02d39b69e2 100644
--- a/example/explainer/fruitsearch.html
+++ b/example/explainer/fruitsearch.html
@@ -42,7 +42,7 @@ BSD-style license that can be found in the LICENSE file.
List<String> get results {
var res = fruits.filter(
- (v) => v.toLowerCase().contains(query.toLowerCase()));
+ (v) => v.toLowerCase().contains(query.toLowerCase())) as List<String>;
Jennifer Messerly 2012/12/07 20:31:57 nit: put type annotation on LHS :) List<String> r
Siggi Cherem (dart-lang) 2012/12/18 03:10:00 :)... good point.
if (res.length > 20) {
res.length = 20;
res.add('... and many more');

Powered by Google App Engine
This is Rietveld 408576698