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

Unified Diff: client/web/type.dart

Issue 149573008: Factor out the anchor prefix to easily allow switching to #! (Closed) Base URL: https://github.com/dart-lang/dartdoc-viewer.git@master
Patch Set: Fixes from review Created 6 years, 10 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 | « client/web/search.dart ('k') | client/web/typedef.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/web/type.dart
diff --git a/client/web/type.dart b/client/web/type.dart
index c668a0818cfa85f6632c21a14e5abb667534d2bc..8573e13a251b6d48a06cf00d8b0733a330966dcb 100644
--- a/client/web/type.dart
+++ b/client/web/type.dart
@@ -6,6 +6,7 @@ library web.type;
import 'dart:html';
import 'package:dartdoc_viewer/item.dart';
+import 'package:dartdoc_viewer/location.dart';
import 'package:dartdoc_viewer/search.dart' show searchIndex;
import 'package:polymer/polymer.dart';
@@ -37,7 +38,7 @@ class TypeElement extends PolymerElement {
if (searchIndex.map.containsKey(type.outer.qualifiedName)) {
var outer = new AnchorElement()
..text = type.outer.simpleType
- ..href = '#${type.outer.location}';
+ ..href = locationPrefixed(type.outer.location);
span.append(outer);
} else {
span.appendText(type.outer.simpleType);
« no previous file with comments | « client/web/search.dart ('k') | client/web/typedef.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698