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

Side by Side Diff: samples/playground/playground.dart

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #import('dart:html'); 5 import 'dart:html';
6 6
7 void run() { 7 void run() {
8 // Get user script. 8 // Get user script.
9 final textarea = document.query('#code'); 9 final textarea = document.query('#code');
10 final text = textarea.value; 10 final text = textarea.value;
11 11
12 // Clear previous output. 12 // Clear previous output.
13 final output = document.query('#output'); 13 final output = document.query('#output');
14 output.innerHTML = ''; 14 output.innerHTML = '';
15 15
(...skipping 11 matching lines...) Expand all
27 </body> 27 </body>
28 </html> 28 </html>
29 '''; 29 ''';
30 output.nodes.add(iframe); 30 output.nodes.add(iframe);
31 } 31 }
32 32
33 void main() { 33 void main() {
34 final button = document.query('#button'); 34 final button = document.query('#button');
35 button.on.click.add((e) => run(), false); 35 button.on.click.add((e) => run(), false);
36 } 36 }
OLDNEW
« no previous file with comments | « samples/newissues/newissues.dart ('k') | samples/sample_extension/sample_asynchronous_extension.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698