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

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: removed dynamic, marked one test as Fail on IE11 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(newValueEvaluator()) {
+ if (storage[name] == null) {
+ value = newValueEvaluator();
+ }
+ }
}
class BooleanUserOption extends UserOption {

Powered by Google App Engine
This is Rietveld 408576698