Skip to content

Commit

Permalink
included symbols in classes.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Erich Ocean committed Jul 10, 2008
1 parent 86c3514 commit 5029289
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions jsdoc/templates/sproutcore/index.tmpl
Expand Up @@ -19,21 +19,13 @@ function groupName(path) {
}
};

function getSymbols(className, thisClass) {
var ret = [className.toLowerCase()] ;
function getSymbols(thisClass) {
var ret = [thisClass.alias.toLowerCase()] ;
var len = thisClass.properties ;

var f = function(data) {
if (data && data.length) {
var idx = data.length ;
while(--idx >= 0) {
var name = data[idx].name ;
if (name) ret.push(name.toLowerCase()) ;
}
}
};

f(thisClass.properties) ;
f(thisClass.methods) ;
while (--len>=0) {
ret.push(thisClass.properties[len].alias.toLowerCase()) ;
}

return ret.join(' ') ;
};
Expand All @@ -54,7 +46,7 @@ function getSymbols(className, thisClass) {
<if test="!(thisClass.alias == 'SC')">
"group": "{+groupName(thisClass.srcFile)+}",
</if>
"symbols": "",
"symbols": "{+getSymbols(thisClass)+}",
"path": "{+thisClass.srcFile+}"
},
</if>
Expand Down

0 comments on commit 5029289

Please sign in to comment.