Show
Ignore:
Timestamp:
11/04/07 18:50:56 (7 years ago)
Author:
drry
Message:

websites/coderepos.org/share/js/HatenaStarTrac.js: more faster, more stronger!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/coderepos.org/trac/share/js/HatenaStarTrac.js

    r1102 r1104  
    108108                    var lines = codeTable[0].getElementsByTagName('th'); 
    109109                    for (var i = 1, n = lines.length; i < n; i++) { 
    110                         if (lines[i].id.match(/^L\d+/)) { 
     110                        if (/^L\d+/.test(lines[i].id)) { 
    111111                            entries.push(new Hatena.Star.Entry.TracBrowserCode(content, lines[i], info)); 
    112112                        } 
     
    135135            var aInTh = infoTh.getElementsByTagName('a')[0]; 
    136136            rev = Ten.DOM.scrapeText(aInTh); 
    137             if (!href.match(/\?rev=\d+/)) { 
     137            if (!/\?rev=\d+/.test(href)) { 
    138138                href = href.replace(/#/, '?rev='+rev+'#'); 
    139139            }