Show
Ignore:
Timestamp:
03/17/07 15:22:08 (22 months ago)
Author:
jburke
Message:

Fixes #2606, dojo.requireIf calls not being stripped from built dojo.js

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.4/buildscripts/buildUtil.js

    r7492 r7629  
    281281        } 
    282282                 
    283         //If we have a string for a regexp, do the dojo.require() removal now. 
     283        //If we have a string for a regexp, do the dojo.require() and requireIf() removal now. 
    284284        if(depRegExpString){ 
    285                 var depRegExp = new RegExp("dojo\\.(require)\\((" + depRegExpString + ")\\)(;?)", "g"); 
     285                var depRegExp = new RegExp("dojo\\.(require|requireIf)\\(.*?(" + depRegExpString + ")\\)(;?)", "g"); 
    286286                dojoContents = dojoContents.replace(depRegExp, ""); 
    287287        }