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

Unified Diff: src/site/docs/tutorials/fetchdata/examples/portmanteaux_simple/portmanteaux_simple.dart

Issue 26922002: removing Web UI tutorials, updating remaining 4 to current release, + review pass (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: merge with master Created 7 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 side-by-side diff with in-line comments
Download patch
Index: src/site/docs/tutorials/fetchdata/examples/portmanteaux_simple/portmanteaux_simple.dart
diff --git a/src/site/docs/tutorials/fetchdata/examples/portmanteaux_simple/portmanteaux_simple.dart b/src/site/docs/tutorials/fetchdata/examples/portmanteaux_simple/portmanteaux_simple.dart
index 2cadceffb209f09ae382e37771b4f650060c2a3a..29e2aa68916436cd3e4f1a207bf08d48ec567a6a 100644
--- a/src/site/docs/tutorials/fetchdata/examples/portmanteaux_simple/portmanteaux_simple.dart
+++ b/src/site/docs/tutorials/fetchdata/examples/portmanteaux_simple/portmanteaux_simple.dart
@@ -1,5 +1,5 @@
import 'dart:html';
-import 'dart:json' as json;
+import 'dart:convert';
import 'dart:async';
var wordList;
@@ -17,7 +17,7 @@ void makeRequest(Event e) {
}
processString(String jsonString) {
- List<String> portmanteaux = json.parse(jsonString);
+ List<String> portmanteaux = JSON.decode(jsonString);
for (int i = 0; i < portmanteaux.length; i++) {
wordList.children.add(new LIElement()..text = portmanteaux[i]);
}

Powered by Google App Engine
This is Rietveld 408576698