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

Unified Diff: sdk/lib/_internal/dartdoc/lib/src/client/client-shared.dart

Issue 12094076: Fix small bugs in dartdoc/apidoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased + removed commented code. Created 7 years, 11 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: sdk/lib/_internal/dartdoc/lib/src/client/client-shared.dart
diff --git a/sdk/lib/_internal/dartdoc/lib/src/client/client-shared.dart b/sdk/lib/_internal/dartdoc/lib/src/client/client-shared.dart
index 82a71c7837fddd60154de8c197a675e446cf951f..7348f2ed440b5f6651f311f1031a5843b2dbe3b0 100644
--- a/sdk/lib/_internal/dartdoc/lib/src/client/client-shared.dart
+++ b/sdk/lib/_internal/dartdoc/lib/src/client/client-shared.dart
@@ -2,7 +2,13 @@
// 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.
-part of client;
+library client_shared;
+
+import 'dart:html';
+import 'dropdown.dart';
+import '../../classify.dart';
+import '../dartdoc/nav.dart';
+
// Code shared between the different client-side libraries.
@@ -49,7 +55,7 @@ enableCodeBlocks() {
} else {
// Syntax highlight.
if (!pre.classes.contains('formatted')) {
- pre.innerHTML = classifySource(pre.text);
+ pre.innerHtml = classifySource(pre.text);
pre.classes.add('formatted');
};
pre.classes.add('expanded');
@@ -70,10 +76,10 @@ void enableShowHideInherited() {
String display = showInherited.dataAttributes['show-inherited'];
if (display == 'block') {
display = 'none';
- showInherited.innerHTML = 'Show inherited';
+ showInherited.innerHtml = 'Show inherited';
} else {
display = 'block';
- showInherited.innerHTML = 'Hide inherited';
+ showInherited.innerHtml = 'Hide inherited';
}
showInherited.dataAttributes['show-inherited'] = display;
for (var elem in document.queryAll('.inherited')) {

Powered by Google App Engine
This is Rietveld 408576698