From 05828db75d8bac4f3359abb232fded376f829086 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 23 Jun 2012 20:22:09 +0200 Subject: [PATCH] Ox.doc: support inline properties prefixed with '.', add FIXMEs --- source/Ox/js/JavaScript.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Ox/js/JavaScript.js b/source/Ox/js/JavaScript.js index 1fea525b..4eb6ffc6 100644 --- a/source/Ox/js/JavaScript.js +++ b/source/Ox/js/JavaScript.js @@ -309,6 +309,7 @@ Ox.doc = (function() { if (section) { item.section = section; } + // FIXME: should become !/^\./.test(item.name) if (/^[A-Z]/.test(item.name)) { // main item // remove leading linebreaks and whitespace @@ -317,6 +318,8 @@ Ox.doc = (function() { items.push(item); } else { // property of an item + // FIXME: should become item.name.slice(1) + item.name = item.name.replace(/^\./, ''); lastItem = Ox.last(items); parent = lastItem.types[0] == 'function' && lastItem.returns