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

Side by Side Diff: example/todomvc/web/router_options.dart

Issue 20863002: Introduce boot.js: this finally makes it possible to load and run Todomvc (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 5 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 unified diff | Download patch
OLDNEW
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 router_options; 5 library router_options;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'package:polymer/polymer.dart'; 8 import 'package:polymer/polymer.dart';
9 9
10 /** 10 /**
(...skipping 28 matching lines...) Expand all
39 39
40 _updateHash(null); 40 _updateHash(null);
41 _sub = windowLocation.changes.listen(_updateHash); 41 _sub = windowLocation.changes.listen(_updateHash);
42 } 42 }
43 43
44 void removed() { 44 void removed() {
45 _sub.cancel(); 45 _sub.cancel();
46 super.removed(); 46 super.removed();
47 } 47 }
48 } 48 }
49
50 _init() {
51 registerPolymerElement('router-options', () => new RouterOptions());
52 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698