| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library trydart.ui; | 5 library trydart.ui; |
| 6 | 6 |
| 7 import 'dart:html'; | 7 import 'dart:html'; |
| 8 | 8 |
| 9 import 'dart:async' show | 9 import 'dart:async' show |
| 10 Future, | 10 Future, |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 dialog.style.height = '${settingsHeight}px'; | 453 dialog.style.height = '${settingsHeight}px'; |
| 454 }); | 454 }); |
| 455 } else { | 455 } else { |
| 456 dialog.style.height = '${settingsHeight}px'; | 456 dialog.style.height = '${settingsHeight}px'; |
| 457 } | 457 } |
| 458 | 458 |
| 459 onSubmit(Event event) { | 459 onSubmit(Event event) { |
| 460 event.preventDefault(); | 460 event.preventDefault(); |
| 461 | 461 |
| 462 window.localStorage['alwaysRunInWorker'] = '$alwaysRunInWorker'; | 462 window.localStorage['alwaysRunInWorker'] = '$alwaysRunInWorker'; |
| 463 window.localStorage['alwaysRunInIframe'] = '$alwaysRunInIframe'; |
| 464 window.localStorage['communicateViaBlobs'] = '$communicateViaBlobs'; |
| 463 window.localStorage['verboseCompiler'] = '$verboseCompiler'; | 465 window.localStorage['verboseCompiler'] = '$verboseCompiler'; |
| 464 window.localStorage['minified'] = '$minified'; | 466 window.localStorage['minified'] = '$minified'; |
| 465 window.localStorage['onlyAnalyze'] = '$onlyAnalyze'; | 467 window.localStorage['onlyAnalyze'] = '$onlyAnalyze'; |
| 466 window.localStorage['enableDartMind'] = '$enableDartMind'; | 468 window.localStorage['enableDartMind'] = '$enableDartMind'; |
| 467 window.localStorage['compilationPaused'] = '$compilationPaused'; | 469 window.localStorage['compilationPaused'] = '$compilationPaused'; |
| 468 window.localStorage['codeFont'] = '$codeFont'; | 470 window.localStorage['codeFont'] = '$codeFont'; |
| 469 | 471 |
| 470 dialog.style.height = '0px'; | 472 dialog.style.height = '0px'; |
| 471 } | 473 } |
| 472 form.onSubmit.listen(onSubmit); | 474 form.onSubmit.listen(onSubmit); |
| 473 | 475 |
| 474 var doneButton = document.getElementById('settings-done'); | 476 var doneButton = document.getElementById('settings-done'); |
| 475 doneButton.onClick.listen(onSubmit); | 477 doneButton.onClick.listen(onSubmit); |
| 476 } | 478 } |
| OLD | NEW |