Changeset 7659

Show
Ignore:
Timestamp:
03/19/07 01:42:32 (22 months ago)
Author:
alex
Message:

prevent leakage of an inadvertant global name. Refs #2500

Location:
dojo/trunk/_base/_loader
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/_base/_loader/hostenv_browser.js

    r7657 r7659  
    188188                if(arguments.callee.initialized || (type!="domcontentloaded" && type!="load")){ return; } 
    189189                arguments.callee.initialized = true; 
    190                 if(typeof(_timer) != 'undefined'){ 
    191                         clearInterval(_timer); 
    192                         delete _timer; 
     190                if(typeof dojo["_khtmlTimer"] != 'undefined'){ 
     191                        clearInterval(dojo._khtmlTimer); 
     192                        delete dojo._khtmlTimer; 
    193193                } 
    194194 
     
    227227 
    228228        if(/(WebKit|khtml)/i.test(navigator.userAgent)){ // sniff 
    229                 var _timer = setInterval(function(){ 
     229                dojo._khtmlTimer = setInterval(function(){ 
    230230                        if(/loaded|complete/.test(document.readyState)){ 
    231231                                dojo._loadInit(); // call the onload handler 
  • dojo/trunk/_base/_loader/loader.js

    r7658 r7659  
    217217} 
    218218 
    219 dojo.getModuleSymbols = function(/*String*/modulename){ 
     219dojo._getModuleSymbols = function(/*String*/modulename){ 
    220220        // summary: 
    221221        //              Converts a module name in dotted JS notation to an array 
     
    283283        var nsyms = moduleName.split("."); 
    284284         
    285         var syms = this.getModuleSymbols(moduleName); 
     285        var syms = this._getModuleSymbols(moduleName); 
    286286        // console.debug(syms); 
    287287        var startedRelative = ((syms[0].charAt(0) != '/') && !syms[0].match(/^\w+:/));