Permalink
Browse files

Merge pull request #69 from stuartf/methodctx

find method ctx on nested objects
  • Loading branch information...
2 parents 434d7ce + f32eead commit 1587335394e5085a9ae4746ba158bf0ea93f29d0 @tj committed Oct 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dox.js
View
@@ -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

0 comments on commit 1587335

Please sign in to comment.