fix a bug where events would appear twice on a DocPage

This commit is contained in:
rolux 2013-11-16 20:46:57 +01:00
parent 13246cc15b
commit 29950d2a10

View file

@ -244,7 +244,8 @@ Ox.doc = (function() {
} else if (subitem.types[0] == 'event') { } else if (subitem.types[0] == 'event') {
item.events = item.events || []; item.events = item.events || [];
item.events.push(parseNode(node)); item.events.push(parseNode(node));
order.push('events'); // FIXME: unclear if this should be part of order, too
// order.push('events');
} else { } else {
key = item.types[0] == 'function' key = item.types[0] == 'function'
&& !/^\./.test(subitem.name) && !/^\./.test(subitem.name)