From 84e6a5f2f86c9cb7ec5257ca17735afcd16eeb79 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 22 Nov 2006 15:08:34 +0000 Subject: [PATCH] * Add ".prototype" to name of nexted functions. --- src/helma/doc/DocFunction.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helma/doc/DocFunction.java b/src/helma/doc/DocFunction.java index 8b707469..8a2d8a79 100644 --- a/src/helma/doc/DocFunction.java +++ b/src/helma/doc/DocFunction.java @@ -127,7 +127,8 @@ public class DocFunction extends DocResourceElement { } else if (token.type == Token.THIS) { - lastNameString = parent.getName(); + if (parent instanceof DocFunction) + lastNameString = parent.getName() + ".prototype"; // this may be the start of a name chain declaring a function // e.g. Number.prototype.functionName = function() { } // marker = getPoint(token);