From 29950d2a10bbe11977704c2b2a649feacc611e67 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 16 Nov 2013 20:46:57 +0100 Subject: [PATCH] fix a bug where events would appear twice on a DocPage --- source/Ox/js/JavaScript.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox/js/JavaScript.js b/source/Ox/js/JavaScript.js index 17b115dc..1a782c61 100644 --- a/source/Ox/js/JavaScript.js +++ b/source/Ox/js/JavaScript.js @@ -244,7 +244,8 @@ Ox.doc = (function() { } else if (subitem.types[0] == 'event') { item.events = item.events || []; item.events.push(parseNode(node)); - order.push('events'); + // FIXME: unclear if this should be part of order, too + // order.push('events'); } else { key = item.types[0] == 'function' && !/^\./.test(subitem.name)