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

Unified Diff: samples/hi/hi.dart

Issue 11142015: update hello, world sample and remove slider (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: after merge with master Created 8 years, 2 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 | « editor/tools/plugins/com.google.dart.tools.ui/samples/slider.xml ('k') | samples/hi/hi.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/hi/hi.dart
diff --git a/samples/hi/hi.dart b/samples/hi/hi.dart
index 77cc144f834513f040b0496efde571b3ea84607a..2ce0f41f920cf65027111390b2f071231db16638 100644
--- a/samples/hi/hi.dart
+++ b/samples/hi/hi.dart
@@ -1,11 +1,11 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#library('hi');
+library hi;
-#import('dart:html');
+import 'dart:html';
main() {
- document.query('#status').innerHTML = 'Hi, Dart';
+ query('#status').text = 'Hi, Dart';
}
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.ui/samples/slider.xml ('k') | samples/hi/hi.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698