Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix item name/prefix for events of nested sections/namespaces/classes #63

Merged
merged 2 commits into from Jul 28, 2012
Jump to file or symbol
Failed to load files and symbols.
+17 −2
Split
View
@@ -177,14 +177,14 @@ function build_tree(nodes, options) {
// cleanup nodes, reassign right ids after we resolved
// to which sections every element belongs
_.each(nodes, function (node, id) {
- var idx = node.id.indexOf('@'); // get position of @event start
-
delete nodes[id];
// compose new id
node.id = id.replace(/^[^.]*\./, '');
// First check for event, because event name can contain '.' and '#'
+ var idx = node.id.indexOf('@'); // get position of @event start
+
// Otherwise get property/method delimiter position
if (idx === -1) {
idx = Math.max(node.id.lastIndexOf('.'), node.id.lastIndexOf('#'));
View
@@ -0,0 +1,15 @@
+/**
+ * == Issue62 ==
+ **/
+
+/** section: Issue62
+ * class PullRequest
+ *
+ * This is a pull request that fixed "section > class > event" name parsing
+ **/
+
+/**
+ * PullRequest@event()
+ *
+ * Event example
+ **/