doxy/node/xml2js.js
function getVariables(spec_c, parent) {
  var spec_js = {};
  var vars = _.find(getChildren(spec_c, 'sectiondef'), function(section) {
    var kind = getAttr(section, 'kind');
    return (kind == 'public-attrib');
  });
  if (vars) {
    _.each(_.filter(vars.children, function(variable) {
      return (getAttr(variable, 'kind') == 'variable');
    }), function(variable) {
      var varName = getText(getChild(variable, 'name'), 'name');
      var varType = getType(getText(getChild(variable, 'type')), parent);
      var varDescription = getText(getChild(variable, 'detaileddescription'));
      spec_js[varName] = {
        type: varType,
        description: varDescription
      }
    });
  }
  return spec_js;
}
function getVariables(spec_c, parent) {
  var spec_js = {};
  var vars = _.find(getChildren(spec_c, 'sectiondef'), function(section) {
    var kind = getAttr(section, 'kind');
    return (kind == 'public-attrib');
  });
  if (vars) {
    _.each(_.filter(vars.children, function(variable) {
      return (getAttr(variable, 'kind') == 'variable');
    }), function(variable) {
      var varName = getText(getChild(variable, 'name'), 'name');
      var varType = getType(getText(getChild(variable, 'type')), parent);
      var varDescription = getText(getChild(variable, 'detaileddescription'));
      spec_js[varName] = {
        type: varType,
        description: varDescription
      }
    });
  }
  return spec_js;
}
function getVariables ( spec_c , parent ) { var spec_js = { } ; var vars = _ . find ( getChildren ( spec_c , 'sectiondef' ) , function ( section ) { var kind = getAttr ( section , 'kind' ) ; return ( kind == 'public-attrib' ) ; } ) ; if ( vars ) { _ . each ( _ . filter ( vars . children , function ( variable ) { return ( getAttr ( variable , 'kind' ) == 'variable' ) ; } ) , function ( variable ) { var varName = getText ( getChild ( variable , 'name' ) , 'name' ) ; var varType = getType ( getText ( getChild ( variable , 'type' ) ) , parent ) ; var varDescription = getText ( getChild ( variable , 'detaileddescription' ) ) ; spec_js [ varName ] = { type : varType , description : varDescription } } ) ; } return spec_js ; }
get variable specifications for a class
get variable specifications for a class