Changeset 12439

Show
Ignore:
Timestamp:
02/14/08 09:44:14 (11 months ago)
Author:
pottedmeat
Message:

Refs #5602. Make sure that objects without a prototype chain still have their children printed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/branches/dev/jsdoc/jsdoc.module

    r12362 r12439  
    27112711 
    27122712  $prototype_chain = jsdoc_get_prototype_chain($node, array(3, 4)); 
    2713   if (!empty($prototype_chain)) { 
     2713  if(empty($prototype_chain)){ 
     2714    $prototype_chain = array($node); 
     2715  } 
     2716  else { 
    27142717    $form['prototype_chain'] = array( 
    27152718      '#value' => theme('jsdoc_object_prototype_chain', $prototype_chain), 
     
    27532756    ); 
    27542757  } 
     2758 
    27552759  for ($i = 0; $i < count($mixin_chain); $i++) { 
    27562760    $item = $mixin_chain[$i]->node; 
     
    27952799    foreach ($children_all as $type => $items) { 
    27962800      $type = substr($type, 0, -1); 
    2797       if ($type == 'variable') { 
    2798         // TODO: Find something that has this 
    2799         //    and flag it "normal" 
    2800       } 
    28012801      foreach ($items as $item) { 
    28022802        if (is_object($item)) { 
     
    28442844          } 
    28452845          $children[$title]->url = $item->jsdoc_url; 
     2846          if ($type == 'variable') { 
     2847            $children[$title]->normal = true; 
     2848          } 
    28462849          if (trim(jsdoc_get_teaser($item)) != '') { 
    28472850            $children[$title]->summary = jsdoc_get_teaser($item);