Skip to content
This repository has been archived by the owner on Dec 31, 2017. It is now read-only.

Commit

Permalink
Ensure functions used as annotation objects are fully evaluated. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed Jun 6, 2012
1 parent 353b466 commit bf04970
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/processor/dojodoc.js
Expand Up @@ -115,6 +115,10 @@ define([
additionalDescription = '';

if (annotationObject && annotationObject.type !== Value.TYPE_UNDEFINED && /* not a built-in */ annotationObject.file) {
// TODO: The fact that evaluate exists on annotation objects seems to indicate that we’re failing to
// evaluate all function expressions; this might be an issue
annotationObject.evaluate && annotationObject.evaluate();

metadata.type = 'Object';
additionalDescription += metadata.description ?
'\n\nThe following properties are supported:\n' :
Expand Down

0 comments on commit bf04970

Please sign in to comment.