Changeset 7844

Show
Ignore:
Timestamp:
03/29/07 17:55:03 (20 months ago)
Author:
pottedmeat
Message:

Fixes #2673. Changed a regex and a dojo.declare permutation

Location:
trunk/docscripts
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/docscripts/docparser.php

    r7516 r7844  
    9696        $init = $args[3]->getFunction(); 
    9797      } 
     98                        if ($args[3]->isA(DojoObject)) { 
     99                                $args[4] = $args[3]; 
     100                                $args[3] = null; 
     101                        } 
    98102    } 
    99103    else { 
  • trunk/docscripts/inc/DojoObject.php

    r6381 r7844  
    7171                                        break; 
    7272                                } 
    73         if (preg_match('%^(\s*)([a-zA-Z0-9_$]+|"\s+"):%', $line, $match)) { 
     73        if (preg_match('%^(\s*)([a-zA-Z0-9_$]+|"\s+")\s*:%', $line, $match)) { 
    7474          if ($end[0] != $this->start[0] && $end[1] != $this->start[1]) { 
    7575            $between_lines = Text::chop($this->package->getSource(), $end[0], $end[1], $line_number, strlen($match[1]), true);