Index: lib/dartdoc/client-shared.dart |
diff --git a/lib/dartdoc/client-shared.dart b/lib/dartdoc/client-shared.dart |
index ac0d45b5b55ec097dfbc55f8f91d466f370ed220..9b3ab21c7cba27d5ff46dbd068421c193917c9e5 100644 |
--- a/lib/dartdoc/client-shared.dart |
+++ b/lib/dartdoc/client-shared.dart |
@@ -17,6 +17,7 @@ enableCodeBlocks() { |
if (showCode == null) continue; |
var pre = elem.query('pre.source'); |
+ |
showCode.on.click.add((e) { |
if (pre.classes.contains('expanded')) { |
pre.classes.remove('expanded'); |
@@ -29,5 +30,6 @@ enableCodeBlocks() { |
pre.classes.add('expanded'); |
} |
}); |
+ |
} |
} |