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

Unified Diff: third_party/pkg/route_hierarchical/example/basic/example.dart

Issue 1086713003: Remove everything but markdown from third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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: third_party/pkg/route_hierarchical/example/basic/example.dart
diff --git a/third_party/pkg/route_hierarchical/example/basic/example.dart b/third_party/pkg/route_hierarchical/example/basic/example.dart
deleted file mode 100644
index 56f8675eacd9ff528a7cb62b7314cb8c1e85265a..0000000000000000000000000000000000000000
--- a/third_party/pkg/route_hierarchical/example/basic/example.dart
+++ /dev/null
@@ -1,37 +0,0 @@
-library example;
-
-import 'dart:html';
-
-import 'package:logging/logging.dart';
-import 'package:route_hierarchical/client.dart';
-
-main() {
- new Logger('')
- ..level = Level.FINEST
- ..onRecord.listen((r) => print('[${r.level}] ${r.message}'));
-
- querySelector('#warning').remove();
-
- var router = new Router(useFragment: true);
-
- router.root
- ..addRoute(name: 'one', defaultRoute: true, path: '/one', enter: showOne)
- ..addRoute(name: 'two', path: '/two', enter: showTwo);
-
- querySelector('#linkOne').attributes['href'] = router.url('one');
- querySelector('#linkTwo').attributes['href'] = router.url('two');
-
- router.listen();
-}
-
-void showOne(RouteEvent e) {
- print("showOne");
- querySelector('#one').classes.add('selected');
- querySelector('#two').classes.remove('selected');
-}
-
-void showTwo(RouteEvent e) {
- print("showTwo");
- querySelector('#one').classes.remove('selected');
- querySelector('#two').classes.add('selected');
-}
« no previous file with comments | « third_party/pkg/route_hierarchical/codereview.settings ('k') | third_party/pkg/route_hierarchical/example/basic/example.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698