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

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

Issue 408783002: Enable Try Dart to run on IE11. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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: site/try/src/user_option.dart
===================================================================
--- site/try/src/user_option.dart (revision 39366)
+++ site/try/src/user_option.dart (working copy)
@@ -35,6 +35,12 @@
void set value(newValue) {
storage[name] = newValue;
}
+
+ void setIfNotInitialized(dynamic newValueEvaluator()) {
ahe 2014/08/19 13:02:49 Remove "dynamic".
+ if (storage[name] == null) {
+ value = newValueEvaluator();
+ }
+ }
}
class BooleanUserOption extends UserOption {
« no previous file with comments | « site/try/src/shadow_root.dart ('k') | tests/try/try.status » ('j') | tests/try/try.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698