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

Unified Diff: dart/site/try/src/leap.dart

Issue 214513005: Add CompilationUnit abstraction for tracking "project files". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address Kasper's comments Created 6 years, 9 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 | « dart/site/try/src/interaction_manager.dart ('k') | dart/site/try/src/ui.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/src/leap.dart
diff --git a/dart/site/try/src/leap.dart b/dart/site/try/src/leap.dart
index f9ef7c4c76f3be6836cfd9b3ba766040a2c28137..1504c6edd6bbdaa1430142d134d520350bcb45ed 100644
--- a/dart/site/try/src/leap.dart
+++ b/dart/site/try/src/leap.dart
@@ -16,7 +16,8 @@ import 'dart:isolate' show
import 'compilation.dart' show
compilerIsolate,
- compilerPort;
+ compilerPort,
+ currentSource;
import 'isolate_legacy.dart' show
spawnDomFunction,
@@ -50,8 +51,8 @@ checkHttpRequest(SendPort replyTo) {
main() {
UserOption.storage = window.localStorage;
- if (window.localStorage['currentSource'] == null) {
- window.localStorage['currentSource'] = EXAMPLE_HELLO;
+ if (currentSource == null) {
+ currentSource = EXAMPLE_HELLO;
}
buildUI();
« no previous file with comments | « dart/site/try/src/interaction_manager.dart ('k') | dart/site/try/src/ui.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698