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

Unified Diff: sky/examples/stocks-fn/companylist.dart

Issue 971183002: Initial commit of Effen reactive framework experiment for Sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « sky/examples/fn/widgets/widgets.dart ('k') | sky/examples/stocks-fn/stockarrow.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks-fn/companylist.dart
diff --git a/sky/examples/stocks/companylist.sky b/sky/examples/stocks-fn/companylist.dart
similarity index 99%
copy from sky/examples/stocks/companylist.sky
copy to sky/examples/stocks-fn/companylist.dart
index 998344b987ba224d421b56f47b2d4e9f0e83e772..736f3aacc22ccc295e59bc18779d2499b9b551f5 100644
--- a/sky/examples/stocks/companylist.sky
+++ b/sky/examples/stocks-fn/companylist.dart
@@ -1,5 +1,4 @@
-<script>
-import "dart:math";
+part of stocksapp;
// Snapshot from http://www.nasdaq.com/screening/company-list.aspx
// Fetched 2/23/2014.
@@ -3001,6 +3000,7 @@ class StockOracle {
StockOracle.fromCompanyList(List<List<String>> list) {
stocks = list.map((fields) => new Stock.fromFields(fields)).toList();
+ stocks.sort((a, b) => a.symbol.compareTo(b.symbol));
}
Stock lookupBySymbol(String symbol) {
@@ -3013,5 +3013,3 @@ class StockOracle {
}
final StockOracle oracle = new StockOracle.fromCompanyList(_kCompanyList);
-
-</script>
« no previous file with comments | « sky/examples/fn/widgets/widgets.dart ('k') | sky/examples/stocks-fn/stockarrow.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698