Changeset 8432

Show
Ignore:
Timestamp:
05/07/07 03:15:10 (20 months ago)
Author:
alex
Message:

use indexOf instead of regexp's. Bed-lumping _docScroll. Refs #2686

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/_base/html.js

    r8431 r8432  
    300300        } 
    301301 
    302         var _docScroll = function(){ 
     302        dojo._docScroll = function(){ 
    303303                var _b = dojo.body(); 
    304304                var _w = dojo.global; 
     
    515515        //              Returns whether or not the specified classes are a portion of the 
    516516        //              class list currently applied to the node.  
    517         return (new RegExp('(^|\\s+)'+classStr+'(\\s+|$)')).test(node.className)        // Boolean 
     517        // return (new RegExp('(^|\\s+)'+classStr+'(\\s+|$)')).test(node.className)     // Boolean 
     518        return ((" "+node.className+" ").indexOf(" "+classStr+" ") > 0);  // Boolean 
    518519} 
    519520