projects
/
app.jsdoc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0ad5110
)
JSDOC/ScopeNamer.js
author
Alan Knowles
<alan@roojs.com>
Wed, 23 Nov 2011 04:10:53 +0000
(12:10 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 23 Nov 2011 04:10:53 +0000
(12:10 +0800)
JSDOC/ScopeNamer.js
patch
|
blob
|
history
diff --git
a/JSDOC/ScopeNamer.js
b/JSDOC/ScopeNamer.js
index
d09427f
..
82a6622
100644
(file)
--- a/
JSDOC/ScopeNamer.js
+++ b/
JSDOC/ScopeNamer.js
@@
-242,7
+242,23
@@
ScopeNamer = XObject.define(
// only register names of objects if
var name = this.lookTok(-2).data;
name = !isGlobal && isVar ? false : name;
// only register names of objects if
var name = this.lookTok(-2).data;
name = !isGlobal && isVar ? false : name;
+
name = !isGlobal && name && !name.match(/^this\./) ? false : name;
name = !isGlobal && name && !name.match(/^this\./) ? false : name;
+ if (!isGlobal && name && name.match(/^this\./) ) {
+ // see if scope ends in prototype..
+ if (
+ (scope.split('.').pop() == 'prototype') &&
+ (name.split('.').length == 2)
+ ){
+ name = name.split('.').pop();
+
+ } else {
+ name = false;
+ }
+
+ } else {
+ name = false;
+ }
//print(JSON.stringify(token,null,4));
this.walkObject(scope, name, token.props, jd);
continue;
//print(JSON.stringify(token,null,4));
this.walkObject(scope, name, token.props, jd);
continue;