From f32eead2fda2aa28b7610562555be5eb4c610b12 Mon Sep 17 00:00:00 2001 From: "D. Stuart Freeman" Date: Tue, 16 Oct 2012 12:35:00 -0400 Subject: [PATCH] find method ctx on nested objects --- lib/dox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dox.js b/lib/dox.js index af2188ec..98b14a4a 100644 --- a/lib/dox.js +++ b/lib/dox.js @@ -271,7 +271,7 @@ exports.parseCodeContext = function(str){ , string: RegExp.$1 + '.prototype' + RegExp.$2 }; // method - } else if (/^(\w+)\.(\w+) *= *function/.exec(str)) { + } else if (/^([\w.]+)\.(\w+) *= *function/.exec(str)) { return { type: 'method' , receiver: RegExp.$1