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

Unified Diff: dart/lib/dartdoc/client-live-nav.dart

Issue 10174006: Use 'frog' in apidoc. Also fix broken dependencies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: It's a setter, not a function. Created 8 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: dart/lib/dartdoc/client-live-nav.dart
diff --git a/dart/lib/dartdoc/client-live-nav.dart b/dart/lib/dartdoc/client-live-nav.dart
index 5b5ded7fc542c646268c00e0ac59e770f9b7b35b..008220ce3140b8ac5776c8aa9f810617483e00eb 100644
--- a/dart/lib/dartdoc/client-live-nav.dart
+++ b/dart/lib/dartdoc/client-live-nav.dart
@@ -21,19 +21,17 @@ String currentType = null;
String prefix = '';
main() {
- window.on.contentLoaded.add((e) {
- // Figure out where we are.
- final body = document.query('body');
- currentLibrary = body.dataAttributes['library'];
- currentType = body.dataAttributes['type'];
- prefix = (currentType != null) ? '../' : '';
-
- enableCodeBlocks();
-
- // Request the navigation data so we can build the HTML for it.
- new XMLHttpRequest.getTEMPNAME('${prefix}nav.json', (request) {
- buildNavigation(JSON.parse(request.responseText));
- });
+ // Figure out where we are.
+ final body = document.query('body');
+ currentLibrary = body.dataAttributes['library'];
+ currentType = body.dataAttributes['type'];
+ prefix = (currentType != null) ? '../' : '';
+
+ enableCodeBlocks();
+
+ // Request the navigation data so we can build the HTML for it.
+ new XMLHttpRequest.getTEMPNAME('${prefix}nav.json', (request) {
+ buildNavigation(JSON.parse(request.responseText));
});
}

Powered by Google App Engine
This is Rietveld 408576698